Skip to content

Commit

Permalink
Move Home Facilty to UserAssignedSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Nov 27, 2022
1 parent 0e4ac0f commit 46c64c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/users/api/serializers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ def validate(self, attrs):

class UserBaseMinimumSerializer(serializers.ModelSerializer):
user_type = ChoiceField(choices=User.TYPE_CHOICES, read_only=True)
home_facility = FacilityBareMinimumSerializer(read_only=True)

class Meta:
model = User
Expand All @@ -308,12 +307,12 @@ class Meta:
"last_name",
"user_type",
"last_login",
"home_facility",
)


class UserAssignedSerializer(serializers.ModelSerializer):
user_type = ChoiceField(choices=User.TYPE_CHOICES, read_only=True)
home_facility = FacilityBareMinimumSerializer(read_only=True)

class Meta:
model = User
Expand All @@ -326,6 +325,7 @@ class Meta:
"alt_phone_number",
"user_type",
"last_login",
"home_facility",
)


Expand Down

0 comments on commit 46c64c3

Please sign in to comment.