diff --git a/commcare_connect/opportunity/api/serializers.py b/commcare_connect/opportunity/api/serializers.py index fb3846c3..06d251a7 100644 --- a/commcare_connect/opportunity/api/serializers.py +++ b/commcare_connect/opportunity/api/serializers.py @@ -93,12 +93,12 @@ class Meta: class UserVisitSerializer(serializers.ModelSerializer): - deliver_form_name = serializers.CharField(source="deliver_form.name") - deliver_form_xmlns = serializers.CharField(source="deliver_form.xmlns") + deliver_unit_name = serializers.CharField(source="deliver_unit.name") + deliver_unit_slug = serializers.CharField(source="deliver_unit.slug") class Meta: model = UserVisit - fields = ["id", "status", "visit_date", "deliver_form_name", "deliver_form_xmlns"] + fields = ["id", "status", "visit_date", "deliver_unit_name", "deliver_unit_slug"] class PaymentSerializer(serializers.ModelSerializer):