﻿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
30259	Support the use of admin_order_field on properties in the admin.	Tobias Wiese	Jani Tiainen	"The `ModelAdmin` class allows to specify properties from the model in `list_display`.

Normally non-fields cannot be sorted. This can be changed by setting `admin_order_field`. This doesn't work on properties, while it is possible to do so with `short_description`.

The [[https://github.com/django/django/blob/e4df8e6dc021fa472fa77f9b835db74810184748/django/contrib/admin/utils.py#L345|code]] that checks for `short_description` checks if it handles a property and returns `attr.fget.short_description` if available.

The files that check for `admin_order_field` do not handle the case that it might be a property.

The relevant files are probably:
 - django/contrib/admin/views/main.py ([[https://github.com/django/django/blob/24b82cd201e21060fbc02117dc16d1702877a1f3/django/contrib/admin/views/main.py|GitHub]])
 - django/contrib/admin/templatetags/admin_list.py ([[https://github.com/django/django/blob/0004daa536890fdb389c895baaa21bea6a1f7073/django/contrib/admin/templatetags/admin_list.py| GitHub]])"	New feature	closed	contrib.admin	dev	Release blocker	fixed			Accepted	1	0	0	0	0	0
