You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
submarcos
changed the title
Use get_username_field to determine which field is used in mail templates
Use USERNAME_FIELD to determine which field is used in mail templates
Nov 9, 2020
submarcos
changed the title
Use USERNAME_FIELD to determine which field is used in mail templates
Use USERNAME_FIELD to determine which field is used in email templates
Nov 9, 2020
https://docs.djangoproject.com/fr/2.2/topics/auth/customizing/#django.contrib.auth.models.CustomUser.USERNAME_FIELD
Some django project use another field than username for users (example with email)
Django provide a shortcut to use and get value for this.
We need to use that to format templates and emails, because some projects will not work properly (terralego apps use email as USERNAME_FIELD)
The text was updated successfully, but these errors were encountered: