mirror of
https://github.com/django/django.git
synced 2025-09-21 09:49:53 +00:00
Fixed #30259 -- Added support for admin_order_field attribute on properties in ModelAdmin.list_display.
This commit is contained in:
parent
ea60b7bc74
commit
044cc54420
7 changed files with 36 additions and 4 deletions
|
@ -104,7 +104,7 @@ class ArticleAdmin(admin.ModelAdmin):
|
|||
list_display = (
|
||||
'content', 'date', callable_year, 'model_year', 'modeladmin_year',
|
||||
'model_year_reversed', 'section', lambda obj: obj.title,
|
||||
'order_by_expression',
|
||||
'order_by_expression', 'model_property_year',
|
||||
)
|
||||
list_editable = ('section',)
|
||||
list_filter = ('date', 'section')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue