mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 17:16:34 +03:00
Merge pull request #119 from fleischie/master
Bypass AssertionErrors on nested Hyperlinked fields
This commit is contained in:
commit
5afed21ab2
|
@ -62,7 +62,8 @@ class RegisterView(APIView, SignupView):
|
|||
|
||||
def get_response(self):
|
||||
# serializer = self.user_serializer_class(instance=self.user)
|
||||
serializer = self.serializer_class(instance=self.token)
|
||||
serializer = self.serializer_class(instance=self.token,
|
||||
context={'request': self.request})
|
||||
return Response(serializer.data, status=status.HTTP_201_CREATED)
|
||||
|
||||
def get_response_with_errors(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user