Opened 12 years ago

Closed 12 years ago

#17872 closed Bug (duplicate)

Sometime i need a Custom Widget to overrides default Widget on Admin inlines.

Reported by: Kidwind Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords: InlineModelAdmin
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Sometime i need a Custom Widget to overrides default Widget on Admin inlines.

formfield_overrides = {

models.TextField: {'widget': MyCustomWidget},

}

and MyCustomWidget need some script to drive.
now the "add another" not work well.
so i provide the solution to the problem.

Attachments (1)

inlines.js.diff (1008 bytes ) - added by Kidwind 12 years ago.

Download all attachments as: .zip

Change History (3)

by Kidwind, 12 years ago

Attachment: inlines.js.diff added

comment:1 by Mark Lavin, 12 years ago

At first glance this seems like an incomplete solution at best since it appears to only manipulate inline JS rendered in the row. There are related tickets #15693 and #15760 which propose an alternate solution.

comment:2 by Karen Tracey, 12 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top