From fb0d7f07bce9764fb16f79f57b285d34b31e85bb Mon Sep 17 00:00:00 2001 From: Taras Vozniuk Date: Wed, 10 Apr 2019 14:21:43 +0800 Subject: [PATCH] quite migration name to avoid failures of migration with space in the name --- django_migration_linter/migration_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index ee6651c..3961f23 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -174,7 +174,7 @@ class MigrationLinter(object): it allows to seperate the instances correctly. """ sqlmigrate_command = ( - "cd {0} && {1} manage.py sqlmigrate {2} {3} --database {4}" + "cd {0} && {1} manage.py sqlmigrate {2} '{3}' --database {4}" ).format( self.django_path, sys.executable, app_name, migration_name, self.database )