From 7a5d81c0b490bed5fb2144162a82ef51c0bf6135 Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Fri, 11 Dec 2015 07:16:04 +0100 Subject: [PATCH] Add extra args/kwargs to authtoken's views (#3718) --- rest_framework/authtoken/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/authtoken/views.py b/rest_framework/authtoken/views.py index 743684057..0c6596a7e 100644 --- a/rest_framework/authtoken/views.py +++ b/rest_framework/authtoken/views.py @@ -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']