On 6/4/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > You can use Q objects to preform OR queries. So it would look like > this: > > from django.db.models import Q > games = Game.objects.filter(Q(home_team=searchTeam) | > > Q(away_team=searchTeam)).filter(game_date__range(date_form.cleaned_data['startDate'], > date_form.cleaned_data['endData'])).order_by('games_date', > 'start_time') > > > Alex, thanks very much! Worked like a charm.
-- Chris Hartjes --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---