Opened 7 years ago

Closed 7 years ago

#12644 closed (fixed)

Can not override UserAdmin.add_form in subclasses

Reported by: Karataev Pavel Owned by: Jannis Leidel
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:

Description

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 Karataev Pavel 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

Changed 7 years ago by Karataev Pavel

Attachment: fix.diff added

comment:2 Changed 7 years ago by Karataev Pavel

Cc: minmax777@… added

comment:3 Changed 7 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Status: newassigned

comment:4 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: assignedclosed

(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