Code

Opened 8 years ago

Closed 8 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?

Attachments (0)

Change History (1)

comment:1 Changed 8 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.