On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've got an app for user events, using the generic list view to display > them. So far , so good. But I don't want to display them if the date is > past. So, how would I filter those out. Here's the template code, so > you can sorta see what I'm getting at:
I'm not sure which generic view you're using, given your list is show_list, not object_list. But assuming you're using django.views.generic.list_detail.object_list, just change the queryset you're passing as context to the generic view. Perhaps you want something like from datetime import datetime info_dict={ 'queryset':Show.objects.filter(show_date__date_gte=datetime.now()) } ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---