diff --git a/rest_framework_simplejwt/serializers.py b/rest_framework_simplejwt/serializers.py index 55bc40be8..ec0e0d3fe 100644 --- a/rest_framework_simplejwt/serializers.py +++ b/rest_framework_simplejwt/serializers.py @@ -3,6 +3,7 @@ from django.conf import settings from django.contrib.auth import authenticate, get_user_model from django.contrib.auth.models import AbstractBaseUser +from django.contrib.auth.signals import user_logged_in from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions, serializers from rest_framework.exceptions import ValidationError @@ -10,7 +11,6 @@ from .models import TokenUser from .settings import api_settings from .tokens import RefreshToken, SlidingToken, Token, UntypedToken -from django.contrib.auth.signals import user_logged_in AuthUser = TypeVar("AuthUser", AbstractBaseUser, TokenUser)