Skip to content

Support user models without username field#28

Open
ercpe wants to merge 1 commit intoPeter-Slump:masterfrom
ercpe:no-username-field
Open

Support user models without username field#28
ercpe wants to merge 1 commit intoPeter-Slump:masterfrom
ercpe:no-username-field

Conversation

@ercpe
Copy link

@ercpe ercpe commented Nov 6, 2019

A swappable user model may not have a dedicated username field and use (e.g.) the email field to identify users.
Don't assume that user models have that field and instead add it only if the fields declared by USERNAME_FIELD and EMAIL_FIELD differ when creating the local user record.

A swappable user model may not have a dedicated `username` field and use (e.g.) the email field to identify users.
Don't assume that user models have that field and instead add it only if the fields declared by `USERNAME_FIELD` and `EMAIL_FIELD` differ when creating the local user record.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant