Open CelestialGuru opened 5 months ago
Thanks for opening a PR. Could you add the following:
else
to an elif
, could you add another else
so that in case none of the conditions are met, it will raise an exception or return something else.
Thank you
Fixes bug when using
Exists
subqueries which are or-ed together:This is done usually for performance reasons, but it is a valid queryset.
Exist
instances ored together like this creates aQ
instance, but the children are not themselvesQ
instances. They areExists
instances.