Skip to content

Commit

Permalink
add white label to api
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebPena committed Nov 5, 2024
1 parent c90ea46 commit 708ad1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions screener/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@ class ScreenSerializer(serializers.ModelSerializer):
household_members = HouseholdMemberSerializer(many=True)
expenses = ExpenseSerializer(many=True)
user = UserOffersSerializer(read_only=True)
white_label = serializers.CharField(source="white_label.code", read_only=True)

class Meta:
model = Screen
fields = (
"id",
"uuid",
"white_label",
"completed",
"is_test",
"is_test_data",
Expand Down Expand Up @@ -190,6 +192,7 @@ class Meta:
"completed",
"user",
"is_test_data",
"white_label",
)
create_only_fields = (
"external_id",
Expand Down

0 comments on commit 708ad1f

Please sign in to comment.