#7698: QuerySet slices broken in corner case: QuerySet[0:0] => QuerySet[0:]
------------------------------+---------------------------------------------
Reporter: enoksrd | Owner: nobody
Status: new | Milestone:
Component: Database wrapper | Version: SVN
Keywords: QuerySet, slice | Stage: Unreviewed
Has_patch: 1 |
------------------------------+---------------------------------------------
If you have a QuerySet and slice with an upper bound ("end") of 0 it's
treated like no upper bound at all. See attached svn diff for a fix. To
reproduce: let q be a QuerySet, the q[0:0] is *all* the objects in the
set. Problem due to 0 being false in Python.
--
Ticket URL: <http://code.djangoproject.com/ticket/7698>
Django Code <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
-~----------~----~----~----~------~----~------~--~---