Re: Trouble querying across relationships

2008-06-19 Thread Arien
On Wed, Jun 18, 2008 at 11:21 PM, Austin Govella <[EMAIL PROTECTED]> wrote: > I'm pulling all events for a city: > > events = Event.objects.filter(city=city) > > Each event can have a set of attractions like food, dancing, drama, > djs, live music, art, etc. > > How do I query the list of attracti

Re: Trouble querying across relationships

2008-06-18 Thread Daniel Roseman
On Jun 19, 5:21 am, Austin Govella <[EMAIL PROTECTED]> wrote: > I'm confused on what part of the docs I'm supposed to reference: > *http://www.djangoproject.com/documentation/db-api/ > > I'm pulling all events for a city: > > events = Event.objects.filter(city=city) > > Each event can have a set o

Trouble querying across relationships

2008-06-18 Thread Austin Govella
I'm confused on what part of the docs I'm supposed to reference: * http://www.djangoproject.com/documentation/db-api/ I'm pulling all events for a city: events = Event.objects.filter(city=city) Each event can have a set of attractions like food, dancing, drama, djs, live music, art, etc. How