On 8/16/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
>
> would this actually work?
>
> I thought this would have been evaluated when you start up the
> process, and the show_dict is first called.
> not on every request (which is what they want I'm guessing)

Ack, you're right.

You'll need to defer evaluation until later.

from django.core.models import LazyDate
...
 'queryset': Show.objects.filter(show_date__gte=LazyDate()),
...

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to