Django Admin - list_display default value

91 views
Skip to first unread message

Rick van Hattem (wolph)

unread,
Jun 15, 2015, 1:07:38 PM6/15/15
to django-d...@googlegroups.com
While there are several solutions to this problem, I find myself scaffolding the Django admin every time I create a new app/model. I even created an app to do just that (harmless plug: https://pypi.python.org/pypi/django-admin-generator/).

Anyhow... I've wondered for some time why Django doesn't just default to all local fields for "list_display", it would make the admin far easier to read by default and anyone doing specific things can easily override it anyhow. It would definitely save me a lot of repetition and if it's only local fields (no foreignkeys or m2m stuff) I don't really see the harm in it either.

Would anyone oppose a pull request like this?


Florian Apolloner

unread,
Jun 15, 2015, 3:34:49 PM6/15/15
to django-d...@googlegroups.com


On Monday, June 15, 2015 at 7:07:38 PM UTC+2, Rick van Hattem (wolph) wrote:
Would anyone oppose a pull request like this?

Yes, it is highly backwards incompatible for not much gain, I am also usually just fine with one/two fields for list_display. You could just use your own admin subclass for that.
Reply all
Reply to author
Forward
0 new messages