#10139: Slicing an EmptyQuerySet gives a list, not another EmptyQuerySet
-------------------------------------+-------------------------------------
Reporter: forest | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: SVN
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Design
Keywords: | decision needed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by ori):
* cc: ori (added)
* has_patch: 0 => 1
* ui_ux: => 0
* version: 1.0-beta-1 => SVN
* easy: => 0
Comment:
`EmptyQuerySet` is a red herring -- the list is being returned by
`__getitem__` on the superclass, which is `QuerySet`. The real problem is
that the documentation for `QuerySet` doesn't currently do a good job
explaining what type object slicing a QuerySet returns. I've added a patch
to improve the documentation on this topic.
--
Ticket URL: <https://code.djangoproject.com/ticket/10139#comment:5>
Django <https://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.