Allow list_editable form fields to be customized separately from changeform fields.
|Reported by:||Adam Vandenberg||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Form fields used by list_editable in the admin can be customized by overriding the formfield_for_dbfield method on a ModelAdmin.
Somtimes, though, you want to use a different customized field in the main and list edit screens. For instance, you might want to shrink down the size of certain fields in the list view, but not on the main view.
This patch adds methods to allow the list_editable form fields to be customized independently.
Very brief discussion on django-users: http://groups.google.com/group/django-users/browse_thread/thread/47c11b346f472ddf/72b9aa9a0b92ad6a#72b9aa9a0b92ad6a
Change History (12)
comment:1 Changed 8 years ago by
|Triage Stage:||Unreviewed → Accepted|