Re: QuerySet's cache

2009-08-16 Thread David
Ah, ok that makes more sense now. Thank you! On Aug 16, 5:52 pm, Alex Gaynor wrote: > On Sun, Aug 16, 2009 at 8:42 AM, David wrote: > > > Hi all, > > > I'm a bit puzzled by the caching behaviour of QuerySets, when used in > > iteration and when

Re: QuerySet's cache

2009-08-16 Thread Alex Gaynor
On Sun, Aug 16, 2009 at 8:42 AM, David wrote: > > Hi all, > > I'm a bit puzzled by the caching behaviour of QuerySets, when used in > iteration and when called with repr(). According to the documentation, > when a QuerySet is evaluated for the first time, the results

QuerySet's cache

2009-08-16 Thread David
Hi all, I'm a bit puzzled by the caching behaviour of QuerySets, when used in iteration and when called with repr(). According to the documentation, when a QuerySet is evaluated for the first time, the results are cached. Trying this out in the shell, this works as expected for iteration.