Opened 14 years ago
Last modified 12 years ago
#11651 new New feature
Allow list_editable form fields to be customized separately from changeform fields.
Reported by: | Adam Vandenberg | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | andy@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | yes |
Description
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
Attachments (4)
Change History (12)
Changed 14 years ago by
Attachment: | customize_list_editable.diff added |
---|
comment:1 Changed 14 years ago by
Needs documentation: | set |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
Changed 14 years ago by
Attachment: | customize_list_editable2.diff added |
---|
Changed 14 years ago by
Attachment: | customize_list_editable3.diff added |
---|
Rebased patch on Django 1.2.
comment:2 Changed 14 years ago by
Where would be a good place to cram in some tests for this? admin_views? admin_changelist? Or a new folder?
Changed 14 years ago by
Attachment: | customize_list_editable4.diff added |
---|
Patch with docs and tests, against 1.2.1
comment:3 Changed 14 years ago by
Needs documentation: | unset |
---|---|
Needs tests: | unset |
comment:4 Changed 13 years ago by
Cc: | andy@… added |
---|
comment:5 Changed 13 years ago by
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:6 Changed 13 years ago by
Easy pickings: | unset |
---|---|
Patch needs improvement: | set |
customize_list_editable4.diff fails to apply cleanly on to trunk
comment:8 Changed 12 years ago by
UI/UX: | set |
---|
Now with docs.