diff --git a/care/users/api/serializers/user.py b/care/users/api/serializers/user.py index 18146f2138..5dfc2b7c59 100644 --- a/care/users/api/serializers/user.py +++ b/care/users/api/serializers/user.py @@ -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 @@ -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 @@ -326,6 +325,7 @@ class Meta: "alt_phone_number", "user_type", "last_login", + "home_facility", )