Opened 13 days ago

Closed 12 days ago

#28771 closed Cleanup/optimization (wontfix)

Add a model field option that corresponds to the short_description admin property

Reported by: Rick Graves Owned by: nobody
Component: Database layer (models, ORM) Version: 1.11
Severity: Normal Keywords: admin listview column names
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

You can put in a [long] description of the column in the table definition. That's good.

But if you want a short description as a column heading on the Admin interface list, you have to jump through hoops.

https://stackoverflow.com/questions/9708455/django-admin-listview-customize-column-name
https://stackoverflow.com/questions/12048176/how-can-i-rename-a-column-label-in-django-admin-for-a-field-that-is-a-method-pr
https://coderwall.com/p/zs58ha/django-admin-listview-column-names

IMHO, if long description can be a column property, short description could ALSO be a column property.

Overall, django is great, thanks!

Change History (1)

comment:1 Changed 12 days ago by Tim Graham

Resolution: wontfix
Status: newclosed
Summary: column short description could be a property of the column: listview column headingAdd a model field option that corresponds to the short_description admin property

I think what you refer to as "long description" is the verbose_name argument. This is used in many places throughout Django.

I think more use cases than a shortcut for short_description in the admin is needed to justify adding a new model field option. This is also the type of proposal that needs a consensus on the DevelopersMailingList before we proceed with it. Feel free to post there if you can add more justification to your proposal.

Note: See TracTickets for help on using tickets.
Back to Top