diff --git a/dj_rest_auth/views.py b/dj_rest_auth/views.py index a5d06d7..28b472d 100644 --- a/dj_rest_auth/views.py +++ b/dj_rest_auth/views.py @@ -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()