Sure thing:
def event_list(request, username, baby_id):
events = Event.objects.filter(baby__id=baby_id).order_by('-date')
baby = Baby.objects.get(id=baby_id)
return object_list(request, queryset=events,
extra_context={'baby':baby})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---