Re: apparent bug in QuerySet

2010-02-22 Thread Marco Rogers
This is interesting. I think the two examples you give are distinct use cases and they should be. But I think it's just as common to want to do what felix is doing. Essentially he wants to modify a queryset as it exists by adding or overriding additional parameters. It can be very convenient

Re: apparent bug in QuerySet

2010-02-22 Thread Russell Keith-Magee
On Mon, Feb 22, 2010 at 4:48 AM, felix wrote: > > This seems so blatant that it couldn't really be a bug without someone > noticing. Django 1.2 > >        qs = Apt.objects.filter(list_on_web=True,is_available=True) > >         # FastAdderStatus has Apt and Service as fk >  

apparent bug in QuerySet

2010-02-21 Thread felix
This seems so blatant that it couldn't really be a bug without someone noticing. Django 1.2 qs = Apt.objects.filter(list_on_web=True,is_available=True) # FastAdderStatus has Apt and Service as fk qs = qs.filter(fastadderstatus__service=self.service) # later on