Skip to content

Commit ca62f44

Browse files
committed
Append more information to comment
Explain why we are defining JWTUserDetailsSerializer in registration/serializers.py instead of getting it from app_settings.py
1 parent dd6db35 commit ca62f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_auth/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ class Meta:
131131
read_only_fields = ('email', )
132132

133133

134-
# Required to allow using custom UserDetailsSerializer in
135-
# JWTSerializer
134+
# Required to allow using custom USER_DETAILS_SERIALIZER in
135+
# JWTSerializer. Defining it here to avoid circular imports
136136
rest_auth_serializers = getattr(settings, 'REST_AUTH_SERIALIZERS', {})
137137
JWTUserDetailsSerializer = import_callable(
138138
rest_auth_serializers.get('USER_DETAILS_SERIALIZER', UserDetailsSerializer)

0 commit comments

Comments
 (0)