Rereading your post, I realized my was incomplete. Sorry.

To do the filter you want, you can use the 'range' field lookup:
import datetime
start_date = datetime.date.today()
end_date = some_other_date
events =
Event.objects.filter(eventdate__beginning_date__range=(start_date,
end_date))

If you've already picked an event, you can get its future eventdates
with
event.eventdate_set.filter(range=(start_date, end_date))

I find your choice to separate events and eventdates curious -- if an
event may be repeated multiple times, it seems likely that other
details like its price or number of openings could also change, no?

Benj


--~--~---------~--~----~------------~-------~--~----~
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