Skip to content

Commit

Permalink
Merge pull request #154 from dimagi/ce/deliver-unit-api
Browse files Browse the repository at this point in the history
update delivery progress api to use deliver units
  • Loading branch information
calellowitz authored Oct 5, 2023
2 parents 2bb9a56 + f62beb5 commit 6662581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commcare_connect/opportunity/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6662581

Please sign in to comment.