Documentation for extending UserCreationForm doesn't work with UserAdmin
In the docs for customising the Auth User model it does not fully outline the link between the UserCreationForm and the UserAdmin - specifically the fact that the UserAdmin's add_fieldsets will be used rather than the fields attribute in the Meta for the custom UserCreationForm.
At the end of this section (https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#custom-users-and-the-built-in-auth-forms) it specifies that one can simply override the fields in the Meta of one's UserCreationForm. However, as the UserAdmin uses a custom get_fieldsets method which uses its add_fieldsets attribute instead, overriding fields does nothing.
Change History
(11)
| Summary: |
Lack of clear documentation for custom UserCreationForm when using a custom User model → Documentation for extending UserCreationForm doesn't work with UserAdmin
|
| Triage Stage: |
Unreviewed → Accepted
|
| Type: |
Bug → Cleanup/optimization
|
| Owner: |
changed from nobody to Hampus Dunström
|
| Status: |
new → assigned
|
| Owner: |
Hampus Dunström removed
|
| Status: |
assigned → new
|
| Owner: |
set to eadhina
|
| Status: |
new → assigned
|
| Owner: |
eadhina removed
|
| Status: |
assigned → new
|
| Owner: |
set to Swatantra
|
| Status: |
new → assigned
|
| Has patch: |
set
|
| Version: |
1.11 → 2.2
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
I plan to be done with this at the end of October.