#10139: Slicing an EmptyQuerySet gives a list, not another EmptyQuerySet
---------------------------+------------------------------------------------
 Reporter:  forest         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0-beta-1
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 This causes problems if you want to do, for example, {{{qs[0:1].get()}}},
 which is, arguably, poor form.  Still, I think this is a bug.

 {{{
 In [25]: type(models.TestRun.objects.none()[0:10])
 Out[25]: <type 'list'>

 In [26]: type(models.TestRun.objects.all()[0:10])
 Out[26]: <class 'django.db.models.query.QuerySet'>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10139>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to