We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6db35 commit ca62f44Copy full SHA for ca62f44
rest_auth/serializers.py
@@ -131,8 +131,8 @@ class Meta:
131
read_only_fields = ('email', )
132
133
134
-# Required to allow using custom UserDetailsSerializer in
135
-# JWTSerializer
+# Required to allow using custom USER_DETAILS_SERIALIZER in
+# JWTSerializer. Defining it here to avoid circular imports
136
rest_auth_serializers = getattr(settings, 'REST_AUTH_SERIALIZERS', {})
137
JWTUserDetailsSerializer = import_callable(
138
rest_auth_serializers.get('USER_DETAILS_SERIALIZER', UserDetailsSerializer)
0 commit comments