Opened 13 years ago
Closed 13 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)
Change History (3)
by , 13 years ago
Attachment: | inlines.js.diff added |
---|
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.