1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +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:
Klemens Mantzos
2014-01-23 03:13:59 +01:00
committed by Tim Graham
parent 0242134d32
commit f683cb90be
6 changed files with 44 additions and 3 deletions

View File

@@ -292,6 +292,10 @@ Minor features
<django.contrib.admin.ModelAdmin.view_on_site>` to control whether or not to
display the "View on site" link.
* You can specify a descending ordering for a :attr:`ModelAdmin.list_display
<django.contrib.admin.ModelAdmin.list_display>` value by prefixing the
``admin_order_field`` value with a hyphen.
:mod:`django.contrib.auth`
^^^^^^^^^^^^^^^^^^^^^^^^^^