Ticket #17269: r17127-admin-multi-sort-in-options.diff

File r17127-admin-multi-sort-in-options.diff, 869 bytes (added by Sebastian Goll, 13 years ago)
  • docs/ref/models/options.txt

     
    189189    "-" prefix, which indicates descending order. Fields without a leading "-" will
    190190    be ordered ascending. Use the string "?" to order randomly.
    191191
    192     .. note::
    193 
    194         Regardless of how many fields are in :attr:`~Options.ordering`, the admin
    195         site uses only the first field.
    196 
    197192    For example, to order by a ``pub_date`` field ascending, use this::
    198193
    199194        ordering = ['pub_date']
     
    206201
    207202        ordering = ['-pub_date', 'author']
    208203
     204    .. versionchanged:: 1.4
     205
     206    The Django admin honors all elements in the list/tuple; before 1.4, only the first
     207    was respected.
     208
    209209``permissions``
    210210---------------
    211211
Back to Top