Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #17269 -- Corrected the model options doc to indicate that, sin…

…ce 1.4, all fields in `Meta.ordering` are honored by the admin. Thanks to sebastian for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aa5230c4be0a03153206397b191a1e79cae9ecd3 1 parent 78a2719
Julien Phalip authored November 21, 2011

Showing 1 changed file with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. 9  docs/ref/models/options.txt
9  docs/ref/models/options.txt
@@ -189,11 +189,6 @@ Django quotes column and table names behind the scenes.
189 189
     "-" prefix, which indicates descending order. Fields without a leading "-" will
190 190
     be ordered ascending. Use the string "?" to order randomly.
191 191
 
192  
-    .. note::
193  
-
194  
-        Regardless of how many fields are in :attr:`~Options.ordering`, the admin
195  
-        site uses only the first field.
196  
-
197 192
     For example, to order by a ``pub_date`` field ascending, use this::
198 193
 
199 194
         ordering = ['pub_date']
@@ -206,6 +201,10 @@ Django quotes column and table names behind the scenes.
206 201
 
207 202
         ordering = ['-pub_date', 'author']
208 203
 
  204
+    .. versionchanged:: 1.4
  205
+       The Django admin honors all elements in the list/tuple; before 1.4, only
  206
+       the first one was respected.
  207
+
209 208
 ``permissions``
210 209
 ---------------
211 210
 

0 notes on commit aa5230c

Please sign in to comment.
Something went wrong with that request. Please try again.