* status: new => closed
* resolution: => invalid
Comment:
Thanks for the report. As far as I'm aware combining querysets (empty or
not) with `Q()` objects have never been officially supported, documented,
or tests. This worked for empty querysets in Django 4.0, but accidentally
and only due to the order of `EmptyQuerySet` guards. You should use `Q()`
as the starting point for building dynamically `Q` objects, e.g.:
{{{#!python
out = Q()
for a, b in [(1,1),(2,2),(3,3)]:
out |= Q(a=a, b=b)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33963#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.