Code

Opened 4 years ago

Closed 4 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:

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 minmax 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by Alex

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

Changed 4 years ago by minmax

comment:2 Changed 4 years ago by minmax

  • Cc minmax777@… added

comment:3 Changed 4 years ago by jezdez

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

comment:4 Changed 4 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.