mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-28 05:28:38 +00:00
9 lines
275 B
Python
9 lines
275 B
Python
def match(command):
|
|
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):
|
|
return u'{} --delete-ghost-migrations'.format(command.script)
|