diff --git a/care/facility/tests/test_patient_api.py b/care/facility/tests/test_patient_api.py index 01bff0b813..6facfdd3ad 100644 --- a/care/facility/tests/test_patient_api.py +++ b/care/facility/tests/test_patient_api.py @@ -86,6 +86,7 @@ class ExpectedCreatedByObjectKeys(Enum): LAST_NAME = "last_name" USER_TYPE = "user_type" LAST_LOGIN = "last_login" + READ_PROFILE_PICTURE_URL = "read_profile_picture_url" class PatientNotesTestCase(TestUtils, APITestCase): diff --git a/care/users/api/serializers/user.py b/care/users/api/serializers/user.py index 36141cecdd..c33a004bdf 100644 --- a/care/users/api/serializers/user.py +++ b/care/users/api/serializers/user.py @@ -375,6 +375,7 @@ def validate(self, attrs): class UserBaseMinimumSerializer(serializers.ModelSerializer): user_type = ChoiceField(choices=User.TYPE_CHOICES, read_only=True) + read_profile_picture_url = serializers.URLField(read_only=True) class Meta: model = User @@ -386,6 +387,7 @@ class Meta: "last_name", "user_type", "last_login", + "read_profile_picture_url", )