Opened 4 years ago

Closed 4 years ago

#31876 closed Bug (invalid)

UserManager._create_user does not respect USERNAME_FIELD

Reported by: Andrew Zhou Owned by: nobody
Component: contrib.auth Version: 3.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the default UserManager, create_user and create_superuser do not respect USERNAME_FIELD.

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Easy pickings: unset
Resolution: invalid
Status: newclosed

Please check the docs, you should define a custom manager for a custom user model.

Note: See TracTickets for help on using tickets.
Back to Top