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?

Change History (1)

comment:1 by jkocherhans, 19 years ago

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 http://code.djangoproject.com/wiki/NewAdminChanges:

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