Skip to content

Use USERNAME_FIELD to determine which field is used in email templates #84

@submarcos

Description

@submarcos

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions