#28667: Lack of clear documentation for custom UserCreationForm when using a 
custom
User model
-------------------------------------+-------------------------------------
               Reporter:  Nathanael  |          Owner:  nobody
  Gordon                             |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  1.11
  contrib.auth                       |       Keywords:  add_fieldsets
               Severity:  Normal     |  UserAdmin UserCreationForm Custom
           Triage Stage:             |  Auth User Model
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28667>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.6c2b0166d37cc03d57727f2a2a55b32a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to