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