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
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
>
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
3 matches
Mail list logo