1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-18 07:46:11 +00:00
Files
thefuck/thefuck/rules/django_south_ghost.py
2015-05-21 00:49:56 +03:00

9 lines
295 B
Python

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)