All magic happens in line: if(queryset):#check if query returned somethin
To perform this check QuerySet is evaluated and makes query to DB and stores result in list. After that QuerySet slice operation make real slice on underlying cache and of cource return list. On Sun, Jan 25, 2009 at 1:26 AM, mb0...@googlemail.com < mb0...@googlemail.com> wrote: > > Hi, > > please have a look at: http://dpaste.com/112603/ > > Can someone tell me why the sliced queryset suddenly turns into a > list? > I'm still new to Python/Django so I can't tell if it is a bug... but > it sure cost me some time because in my eyes it was something complete > out of the blue. > > Django version 1.0.2 > Python 2.5.2 > > Kind regards, > Martin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---