﻿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
35765	Change label of list_display with __ lookup to only show the bit after the __	Kevin Renskers		"In Django 5.1 ticket #10743 was implemented: `ModelAdmin.list_display now supports using __ lookups to list fields from related models.` This is great!

However, the default label in the admin list is the full thing, which can get very long and wordy. For example in my `UserAdmin` config I can add `account_settings__pace_account_id` to the `list_display` (the `User` model has a one-to-one relationship with an `AccountSettings` model). The label in the Django Admin then becomes ""ACCOUNT SETTINGS PACE ACCOUNT ID"" which is extremely long. I would've expected it to be simply ""PACE ACCOUNT ID"".

So the result is that I am never using the new double underscore lookup feature for `list_display`, and instead I am still creating small getter functions like this:

{{{
def pace_account_id(self, obj):
    return obj.account_settings.pace_account_id
}}}

Is there any chance that the way the label for double-underscore-containing `list_display` values is generated could be changed, so that only the bit after the double underscore is shown?"	Uncategorized	closed	contrib.admin	5.0	Normal	wontfix		Natalia Bidart Tom Carrick	Unreviewed	0	0	0	0	0	0
