diff --git a/api/common/common_views.py b/api/common/common_views.py index 9f8aff0a..4d48d4fb 100644 --- a/api/common/common_views.py +++ b/api/common/common_views.py @@ -330,5 +330,5 @@ def get(self, request): class UserProfilePicAPI(APIView): def get(self, request, muid): - user = User.objects.filter(muid=muid).values(image="profile_pic") + user = User.objects.filter(muid=muid).annotate(image=F("profile_pic")).values("image") return CustomResponse(response=user).get_success_response()