From 1b2073a1872c2e22426746dc2c27a734e83462b7 Mon Sep 17 00:00:00 2001 From: Dhaval Mehta <20968146+dhaval-mehta@users.noreply.github.com> Date: Tue, 23 Jun 2020 15:28:03 +0530 Subject: [PATCH] no need to pass context to get_serializer --- dj_rest_auth/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()