Re: slice QuerySet and keep as QuerySet

2013-10-31 Thread Mike Dewhirst
On 1/11/2013 12:01pm, brian wrote: *How do I slice a QuerySet and keep it as a QuerySet* https://docs.djangoproject.com/en/1.5/ref/models/querysets/#when-querysets-are-evaluated https://docs.djangoproject.com/en/1.5/ref/models/querysets/#methods-that-return-new-querysets *If I do* *a = qs

slice QuerySet and keep as QuerySet

2013-10-31 Thread brian
*How do I slice a QuerySet and keep it as a QuerySet* *If I do* * a = qs[:3]* *then I get a list back. I want a QuerySet. * *I'm wanting to get the first x items in the query set and the last x items in the query set.* -- You received this message because you are subscribed to the Go