On 1/28/06, Luke Plant <[EMAIL PROTECTED]> wrote:
> On Saturday 28 January 2006 00:33, Russell Keith-Magee wrote:
>
> > - Secondly, the template language doesn't lend itself to making the
> > len(Model.objects) call.
>
> {{ objects|length }} works fine.

... as Russell manages to completely forget the obvious. You're
absolutely right. Scratch the template change.

> With my proposal in the other e-mail, this would work exactly as before
> - bool(objects) would fetch the data, and so you would do just the one
> query as before.

+1 to that proposal (__len__ and count(), with __len__ populating cache)

Russ Magee %-)

Reply via email to