Opened 15 years ago

Closed 15 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: dev
Severity: Keywords:
Cc: minmax777@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

by Karataev Pavel, 15 years ago

Attachment: fix.diff added

comment:2 by Karataev Pavel, 15 years ago

Cc: minmax777@… added

comment:3 by Jannis Leidel, 15 years ago

Owner: changed from nobody to Jannis Leidel
Status: newassigned

comment:4 by Jannis Leidel, 15 years ago

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