diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index 2296cd3..8e2708d 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -443,7 +443,7 @@ class MigrationLinter(object): for model in called_models: has_get_model_call = ( re.search( - r"get_model\(.*?,.*?{}.+?\)".format(model), reverse_code_source + r"get_model\(\s*?.*?,.*?{}.+?\s*?\)".format(model), reverse_code_source ) is not None )