mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21924 -- Added the ability to specify a reverse order for admin_order_field.
Thanks Klemens Mantzos for the report and initial patch.
This commit is contained in:
committed by
Tim Graham
parent
0242134d32
commit
f683cb90be
@@ -76,7 +76,8 @@ class ChapterXtra1Admin(admin.ModelAdmin):
|
||||
|
||||
|
||||
class ArticleAdmin(admin.ModelAdmin):
|
||||
list_display = ('content', 'date', callable_year, 'model_year', 'modeladmin_year')
|
||||
list_display = ('content', 'date', callable_year, 'model_year',
|
||||
'modeladmin_year', 'model_year_reversed')
|
||||
list_filter = ('date', 'section')
|
||||
view_on_site = False
|
||||
fieldsets = (
|
||||
|
||||
Reference in New Issue
Block a user