mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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:
parent
0242134d32
commit
f683cb90be
6 changed files with 44 additions and 3 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue