#14285: Calling reverse() on order_by('a', 'b') produces order_by('-a')
-----------------------------------------------+----------------------------
Reporter: mtsachev | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Keywords: reverse order_by multiple columns | Stage: Unreviewed
Has_patch: 0 |
-----------------------------------------------+----------------------------
If you have order_by for more than one column reverse() will use only the
first one to generate the reverse query.
Example:
Calling reverse() on order_by('a', 'b') produces order_by('-a')
Expected:
order_by('-a', '-b')
--
Ticket URL: <http://code.djangoproject.com/ticket/14285>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.