Opened 9 years ago

Closed 9 years ago

#1846 closed enhancement (invalid)

Allow custom edit_inline templates

Reported by: go1dfish Owned by: adrian
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: UI/UX:

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 Changed 9 years ago by jkocherhans

  • Resolution set to invalid
  • Status changed from new to closed

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