Skip to content

Commit bf7d659

Browse files
authored
Fix lint
1 parent 7414cf6 commit bf7d659

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/extra_checks/checks/model_field_checks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ def apply(
296296
in_name = f"{field.name}__in"
297297
for constraint in model._meta.constraints:
298298
if isinstance(constraint, models.CheckConstraint):
299-
condition = constraint.check if django.VERSION < (5, 1) else constraint.condition
299+
condition = (
300+
constraint.check
301+
if django.VERSION < (5, 1)
302+
else constraint.condition
303+
)
300304
if not isinstance(condition, models.Q):
301305
continue
302306
for entry in condition.children:

0 commit comments

Comments
 (0)