diff --git a/InvenTree/InvenTree/fields.py b/InvenTree/InvenTree/fields.py index 71b31c55a8..26fddfa912 100644 --- a/InvenTree/InvenTree/fields.py +++ b/InvenTree/InvenTree/fields.py @@ -56,7 +56,7 @@ class InvenTreeModelMoneyField(ModelMoneyField): def __init__(self, **kwargs): # detect if creating migration - if 'makemigrations' in sys.argv: + if 'migrate' in sys.argv or 'makemigrations' in sys.argv: # remove currency information for a clean migration kwargs['default_currency'] = '' kwargs['currency_choices'] = []