We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7414cf6 commit bf7d659Copy full SHA for bf7d659
src/extra_checks/checks/model_field_checks.py
@@ -296,7 +296,11 @@ def apply(
296
in_name = f"{field.name}__in"
297
for constraint in model._meta.constraints:
298
if isinstance(constraint, models.CheckConstraint):
299
- condition = constraint.check if django.VERSION < (5, 1) else constraint.condition
+ condition = (
300
+ constraint.check
301
+ if django.VERSION < (5, 1)
302
+ else constraint.condition
303
+ )
304
if not isinstance(condition, models.Q):
305
continue
306
for entry in condition.children:
0 commit comments