fix(lint): fix en dash lint errors

This commit is contained in:
Mike 2026-05-22 16:02:14 -07:00
parent 9c04f3e300
commit 1559ff79fb

View file

@ -28,10 +28,10 @@ Q-expressions need to be rewritten for two reasons:
The correct way to express "entities where attr A = x AND attr B ≠ y"
is to chain ``.exclude()`` instead::
# Wrong row-level negation, may return unexpected results
# Wrong - row-level negation, may return unexpected results
MyModel.objects.filter(Q(eav__a=x) & ~Q(eav__b=y))
# Correct entity-level negation
# Correct - entity-level negation
MyModel.objects.filter(eav__a=x).exclude(eav__b=y)
"""