From 8c17bbb5b7f29e3b8bd21fb2aeafecbe2a09e136 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 25 Mar 2025 14:46:49 +0100 Subject: [PATCH] attempt to fix token request issue --- authentication/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):