Skip to content

Commit

Permalink
profile pic
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankattekaden committed Nov 15, 2023
1 parent adead95 commit ad72ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/common/common_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit ad72ef0

Please sign in to comment.