From ad72ef098ec74623d11ba53ae1dde70ab6f70c4a Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Thu, 16 Nov 2023 03:38:48 +0530 Subject: [PATCH] profile pic --- api/common/common_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()