mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
Merge 93a006886d
into 166801063d
This commit is contained in:
commit
0835ed6e37
|
@ -1,4 +1,4 @@
|
|||
from rest_framework.views import APIView
|
||||
from rest_framework import generics
|
||||
from rest_framework import parsers
|
||||
from rest_framework import renderers
|
||||
from rest_framework.response import Response
|
||||
|
@ -6,7 +6,7 @@ from rest_framework.authtoken.models import Token
|
|||
from rest_framework.authtoken.serializers import AuthTokenSerializer
|
||||
|
||||
|
||||
class ObtainAuthToken(APIView):
|
||||
class ObtainAuthToken(generics.GenericAPIView):
|
||||
throttle_classes = ()
|
||||
permission_classes = ()
|
||||
parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,)
|
||||
|
|
Loading…
Reference in New Issue
Block a user