#16691: Slicing none() incorrectly returns a list (expected EmptyQuerySet)
----------------------------+----------------------------------------------
 Reporter:                  |          Owner:  nobody
  raymond.penners@…         |         Status:  new
     Type:  Bug             |      Component:  Database layer (models, ORM)
Milestone:                  |       Severity:  Normal
  Version:  1.3             |   Triage Stage:  Unreviewed
 Keywords:                  |  Easy pickings:  0
Has patch:  0               |
    UI/UX:  0               |
----------------------------+----------------------------------------------
 I would expect the latter statement to return an (empty) QuerySet:

 {{{
 >>> type(User.objects.none())
 <class 'django.db.models.query.EmptyQuerySet'>
 >>> type(User.objects.all()[0:1])
 <class 'django.db.models.query.QuerySet'>
 >>> type(User.objects.none()[0:1])
 <type 'list'>
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16691>
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.

Reply via email to