mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
Add extra args/kwargs to authtoken's views (#3718)
This commit is contained in:
parent
ff4bc43a2f
commit
7a5d81c0b4
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue
Block a user