Opened 13 years ago

Closed 13 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


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?

Change History (1)

comment:1 Changed 13 years ago by jkocherhans

Resolution: invalid
Status: newclosed

This functionality already exists, but there's more to edit_inline than just a template. It is however, mostly undocumented.

From the end of

Inline editing can be customised. rather than using edit_inline=meta.TABULAR or meta.SOURCE, you can define a custom inline editing mode. This is done by subclassing BoundRelatedObject, and using that class. eg edit_inline=HorizontalScroller

Note: See TracTickets for help on using tickets.
Back to Top