mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 05:43:44 +03:00
no need to pass context to get_serializer
This commit is contained in:
parent
ca355baf7a
commit
1b2073a187
|
@ -105,8 +105,7 @@ class LoginView(GenericAPIView):
|
|||
|
||||
def post(self, request, *args, **kwargs):
|
||||
self.request = request
|
||||
self.serializer = self.get_serializer(data=self.request.data,
|
||||
context=self.get_serializer_context())
|
||||
self.serializer = self.get_serializer(data=self.request.data)
|
||||
self.serializer.is_valid(raise_exception=True)
|
||||
|
||||
self.login()
|
||||
|
|
Loading…
Reference in New Issue
Block a user