verbose_name used inconsistently in contrib.admin

43 views
Skip to first unread message

Fran Hrženjak

unread,
Apr 7, 2020, 2:32:58 PM4/7/20
to Django developers (Contributions to Django itself)
Hi all!

If I set verbose_name on a model, it is reflected on this model's admin list view and change view, but not in other areas of the admin, e.g. a FK field on another model.

Please see the attached screenshot.

Is this ticket material?


admin_polls_verbose_name.png

Antje Kazimiers

unread,
Apr 7, 2020, 3:27:55 PM4/7/20
to django-d...@googlegroups.com

Hi Fran,

it would be helpful to see you models.py, it looks like you named a field 'question' that's why column names and filters are named like that. It's up to you to choose another field name like ask.

I also think this question rather belongs to the django-users mailing list.

Antje

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1446a9a7-8f42-4f4a-947f-a3d0e169eb0e%40googlegroups.com.

Tim Graham

unread,
Apr 7, 2020, 3:31:59 PM4/7/20
to Django developers (Contributions to Django itself)
Hi, This behavior looks correct. Field names are used when displaying a model's fields, so a model's verbose_name doesn't have any effect there. Consider a model that has a two foreign keys to the same model. Displaying the model name in that case wouldn't allow distinguishing between the fields.
Reply all
Reply to author
Forward
0 new messages