diff --git a/authentication/views.py b/authentication/views.py index 0bc6974..4fcf9db 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -18,7 +18,7 @@ from .models import Device, LoginLog from .serializers import ChangePasswordSerializer -CustomUser=get_user_model() +CustomUser=settings.AUTH_USER_MODEL @method_decorator(csrf_exempt, name='dispatch') class CustomAuthToken(APIView):