We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ccfe9 commit 2266723Copy full SHA for 2266723
rest_auth/views.py
@@ -63,9 +63,9 @@ def get_response(self):
63
'user': self.user,
64
'token': self.token
65
}
66
- serializer = serializer_class(instance=data)
+ serializer = serializer_class(instance=data, context={'request': self.request})
67
else:
68
- serializer = serializer_class(instance=self.token)
+ serializer = serializer_class(instance=self.token, context={'request': self.request})
69
70
return Response(serializer.data, status=status.HTTP_200_OK)
71
0 commit comments