On Tue, Jul 30, 2013 at 4:04 PM, Wim Lewis <[email protected]> wrote: > > On 30 Jul 2013, at 2:06 PM, Florian Apolloner wrote: >> How do you think such support would look like? For negative indices you'd >> have to know the size of the resultset to be able to do "limit somthing >> offset length-your_negative_index" -- this doesn't seem to make any sense >> for an ORM. You can always do list(qs)]:-1] though… > > It seems like the first comment in the ticket answers that question. Django > would reverse the sense of the query's ordering clause and use a simple LIMIT.
This would only work if the ordering specified were total. If it were not a total ordering, then I believe there is no guarantee that the DESC order will simply be the reverse of the ASC order. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
