Skip to content

Commit

Permalink
User serialization bugfix for updated dj-rest-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-fvh committed Nov 10, 2023
1 parent fb9e3d8 commit ec6cdf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion django_server/application_evaluator_config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,15 @@
]
}

REST_AUTH_SERIALIZERS = {"USER_DETAILS_SERIALIZER": "application_evaluator.rest.UserSerializer"}
# Appears to be deprecated, can likely be removed:
REST_AUTH_SERIALIZERS = {
'USER_DETAILS_SERIALIZER': 'application_evaluator.rest.UserSerializer'
}

# This version appears to be the correct one for dj-rest-auth:
REST_AUTH = {
'USER_DETAILS_SERIALIZER': 'application_evaluator.rest.UserSerializer'
}

LOG_DB_QUERIES = False

Expand Down

0 comments on commit ec6cdf7

Please sign in to comment.