Opened 7 years ago

Closed 7 years ago

#12644 closed (fixed)

Can not override UserAdmin.add_form in subclasses

Reported by: minmax Owned by: jezdez
Component: contrib.auth Version: master
Severity: Keywords:
Cc: minmax777@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I want to do something like this:

class MyUseAdmin(UserAdmin):
    add_form = MyForm

But UserAdmin has a bug, it does not use attribute "add_form" in method "get_form"

Attachments (1)

fix.diff (692 bytes) - added by minmax 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Changed 7 years ago by minmax

comment:2 Changed 7 years ago by minmax

  • Cc minmax777@… added

comment:3 Changed 7 years ago by jezdez

  • Owner changed from nobody to jezdez
  • Status changed from new to assigned

comment:4 Changed 7 years ago by jezdez

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [12265]) Fixed #12644 - Allow overriding the admin user creation form based on r12216. Thanks, minmax.

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