﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36539	Label for related fields should use related model verbose_name attribute for field	Leandro de Souza	Leandro de Souza	"Django 5.1 has added support for referencing related fields directly from the list_display/fieldsets option on the django.contrib.admin.options.ModelAdmin class (#10743).
However, when referencing this field, the label generated for this field is using the attribute name instead of the verbose_name defined on that field.
Using the verbose_name would make much more sense and would be a great addition.

Example:


{{{

# books/models.py
from django.db import models

class Author(models.Model):
  name = models.CharField(verbose_name=""Name of the author"")


class Book(models.Model):
  author = models.ForeignKey(to=Author, on_delete=models.PROTECT)



# books/admin.py

from django.contrib import admin
from .models import Book

@admin.register(Book)
class BookAdmin(admin.ModelAdmin):
  list_display = (""author__name"",)

}}}


The above code would display on the change_list page: ""Author name"" instead of the verbose_name defined at the `author.name` field.
The same applies to fieldsets used on the change page."	Cleanup/optimization	assigned	contrib.admin	dev	Normal		list_display, fieldsets		Accepted	1	0	0	1	0	0
