mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-28 20:13:43 +03:00
Append more information to comment
Explain why we are defining JWTUserDetailsSerializer in registration/serializers.py instead of getting it from app_settings.py
This commit is contained in:
parent
dd6db3563f
commit
ca62f44061
|
@ -131,8 +131,8 @@ class UserDetailsSerializer(serializers.ModelSerializer):
|
|||
read_only_fields = ('email', )
|
||||
|
||||
|
||||
# Required to allow using custom UserDetailsSerializer in
|
||||
# JWTSerializer
|
||||
# Required to allow using custom USER_DETAILS_SERIALIZER in
|
||||
# JWTSerializer. Defining it here to avoid circular imports
|
||||
rest_auth_serializers = getattr(settings, 'REST_AUTH_SERIALIZERS', {})
|
||||
JWTUserDetailsSerializer = import_callable(
|
||||
rest_auth_serializers.get('USER_DETAILS_SERIALIZER', UserDetailsSerializer)
|
||||
|
|
Loading…
Reference in New Issue
Block a user