Re: Filtering by group

2008-05-16 Thread Alex
Alright, I think it works now with this: queryset = Quote.objects.select_related(slug) Much simpler than what I was trying... On May 16, 3:55 pm, Alex <[EMAIL PROTECTED]> wrote: > I'm not sure if this is any closer, but maybe it is: > > queryset = Quote.objects.filter(source in > series.tvepiso

Re: Filtering by group

2008-05-16 Thread Alex
I'm not sure if this is any closer, but maybe it is: queryset = Quote.objects.filter(source in series.tvepisode_set.select_related()), There's something wrong with the "source in" part, though... On May 16, 3:39 pm, Alex <[EMAIL PROTECTED]> wrote: > I'm playing around with a TV quotes database

Filtering by group

2008-05-16 Thread Alex
I'm playing around with a TV quotes database and I'm trying to get all quotes from one TV series. My problem is that the quotes are directly tied to an episode of a TV series, not the series itself. How can I easily get a queryset that represents all quotes from that series? Here's a snippet from