Documentation for REQUIRED_FIELDS on custom users is ambiguous
|Reported by:||russellm||Owned by:||Tim Graham <timograham@…>|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation for the REQUIRED_FIELDS definition on a custom user model describes what fields must be included in required fields. It includes a note that says that USERNAME_FIELD should not be included in REQUIRED_FIELDS.
However, it doesn't say anything about password - which is a required field, and would otherwise meet the requirements of the REQUIRED_FIELDS definition. The note should be expanded (and the general definition clarified) to specifically exclude password.
This doesn't actually cause any problems -- it just means that the createsuperuser command asks for the password three times, instead of two, but it is confusing behaviour.
Change History (7)
Changed 18 months ago by timo
comment:4 Changed 18 months ago by Tim Graham <timograham@…>
- Owner set to Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed