Leaklens

django__django-14140

Combining Q() objects with boolean expressions crashes.

Verdict: the fix is stated in the issue (Tier A).

Therefore, unless there's an argument for keeping the special case, it's better to consistently use args for both Q(x=1).deconstruct() and Q(x=1, y=2).deconstruct().

The text states the fix: “Therefore, unless there's an argument for keeping the special case, it's better to consistently use args for both Q(x=1).deconstruct() and Q(x=1, y=2).deconstruct().”

All SWE-bench Verified tasks · more django/django tasks · How the check works