Skip to content

Commit

Permalink
Add extra args/kwargs to authtoken's views (encode#3718)
Browse files Browse the repository at this point in the history
  • Loading branch information
xordoquy committed Dec 11, 2015
1 parent ff4bc43 commit 7a5d81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/authtoken/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 7a5d81c

Please sign in to comment.