Merge pull request #3723 from linovia/bug/authtoken_versionning_compat

Add extra args/kwargs to authtoken's views (#3718)
This commit is contained in:
José Padilla 2015-12-13 14:53:13 -04:00
commit df071d5555

View File

@ -12,7 +12,7 @@ class ObtainAuthToken(APIView):
renderer_classes = (renderers.JSONRenderer,)
serializer_class = AuthTokenSerializer
def post(self, request):
def post(self, request, *args, **kwargs):
serializer = self.serializer_class(data=request.data)
serializer.is_valid(raise_exception=True)
user = serializer.validated_data['user']