Re: select_related and m2m

2008-10-20 Thread Erik Allik
Sorry, found this: http://code.djangoproject.com/ticket/6432 I think I will probably just denormalize. Erik On 20.10.2008, at 17:22, Erik Allik wrote: > > I've a feeling that this has been brought up before so my apologies > just in case my feeling is right! > > I'm doing a qs = MyModel.object

select_related and m2m

2008-10-20 Thread Erik Allik
I've a feeling that this has been brought up before so my apologies just in case my feeling is right! I'm doing a qs = MyModel.objects.all().select_related("foobars") where foobars is a m2m relation. Later when doing qs_item.foobars.all(), a database hit is generated. Is this a bug, a featu