Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanaktas0 committed Nov 25, 2023
1 parent ffc4afd commit 6cfbfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BasicUserDetailAPI(APIView):
permission_classes = (IsAuthenticated,)

def get(self, request, *args, **kwargs):
user = BasicUser.objects.get(id=request.user.id)
user = BasicUser.objects.get(user_id=request.user.id)
serializer = BasicUserSerializer(user)

return Response(serializer.data)
Expand Down

0 comments on commit 6cfbfda

Please sign in to comment.