simplify any statement
This commit is contained in:
1 parent
859b4b3b1b
commit
44a0c83897
1 file changed
+1
-1
@@ -236,7 +236,7 @@ class MigrationLinter(object):
|
|||||||
return (
|
return (
|
||||||
(self.include_apps and app_label not in self.include_apps)
|
(self.include_apps and app_label not in self.include_apps)
|
||||||
or (self.exclude_apps and app_label in self.exclude_apps)
|
or (self.exclude_apps and app_label in self.exclude_apps)
|
||||||
or (any([isinstance(o, IgnoreMigration) for o in operations]))
|
or any(isinstance(o, IgnoreMigration) for o in operations)
|
||||||
or (
|
or (
|
||||||
self.ignore_name_contains
|
self.ignore_name_contains
|
||||||
and self.ignore_name_contains in migration_name
|
and self.ignore_name_contains in migration_name
|
||||||
|
|||||||
Reference in new issue
Block a user