Document that AUTH_PASSWORD_VALIDATORS doesn't apply to create_user() and create_superuser()
According to this thread, the create_user()
method does not enforce the password validators which I ran into while trying to unittest my validation settings. This seems quite dangerous especially since most validation in django is normally on the model level and many developers like myself may assume these methods would enforce these settings.
Change History
(4)
Component: |
Core (Management commands) → Documentation
|
Description: |
modified (diff)
|
Has patch: |
set
|
Owner: |
changed from nobody to Tim Graham
|
Status: |
new → assigned
|
Summary: |
create_user and create_superuser do not enforce AUTH_PASSWORD_VALIDATORS → Document that AUTH_PASSWORD_VALIDATORS doesn't apply to create_user() and create_superuser()
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Bug → Cleanup/optimization
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Here's a documentation PR to clarify the design decision about this.