Merge pull request #119 from fleischie/master

Bypass AssertionErrors on nested Hyperlinked fields
This commit is contained in:
Mateusz Sikora 2015-11-06 13:39:18 +01:00
commit 5afed21ab2

View File

@ -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):