Add rule for django south inconsistent migrations

This commit is contained in:
nvbn
2015-05-21 00:55:23 +03:00
parent e7d7b80c09
commit c65fdd0f81
4 changed files with 59 additions and 7 deletions
+8
View File
@@ -0,0 +1,8 @@
def match(command, settings):
return 'manage.py' in command.script and \
'migrate' in command.script \
and '--merge: will just attempt the migration' in command.stderr
def get_new_command(command, settings):
return u'{} --merge'.format(command.script)