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

File r17129-admin-multi-sort-in-options-inline.diff, 873 bytes (added by Sebastian Goll, 11 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       The Django admin honors all elements in the list/tuple; before 1.4, only the
     206       first was respected.
     207
    209208``permissions``
    210209---------------
    211210
Back to Top