quite migration name to avoid failures of migration with space in the name

This commit is contained in:
Taras Vozniuk authored and David Wobrock committed 2019-04-21 12:47:17 +02:00
1 parent 1245e7939d
commit fb0d7f07bc
1 file changed
+1 -1
+1 -1
View File
@@ -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
)