Opened 19 years ago
Closed 19 years ago
#1846 closed enhancement (invalid)
Allow custom edit_inline templates
Reported by: | go1dfish | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
While extending the admin site, I noticed that the two different edit inline methods are implemented as two different templates.
Why not allow a string value for edit_inline to specify a custom template for edit_inline rendering?
Note:
See TracTickets
for help on using tickets.
This functionality already exists, but there's more to edit_inline than just a template. It is however, mostly undocumented.
From the end of http://code.djangoproject.com/wiki/NewAdminChanges:
Inline editing can be customised. rather than using
edit_inline=meta.TABULAR
ormeta.SOURCE
, you can define a custom inline editing mode. This is done by subclassingBoundRelatedObject
, and using that class. egedit_inline=HorizontalScroller