That kind of sorting is usually done in python after the query.

But if it is possible to make the query by EventDate it would be better
to do

eventdates =
EventDate.objects.filter(beginning_date__range=(start_date,
end_date)).order_by('beginning_date').select_related()

then you access the event data by, for example,
eventdates[0].event.name

Hope it helps,
pvl


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