Add rule for django south ghost migrations

This commit is contained in:
nvbn
2015-05-21 00:49:56 +03:00
parent f986df23d5
commit e7d7b80c09
3 changed files with 62 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
def match(command, settings):
return 'manage.py' in command.script and \
'migrate' in command.script \
and 'or pass --delete-ghost-migrations' in command.stderr
def get_new_command(command, settings):
return u'{} --delete-ghost-migrations'.format(command.script)