Merge branch 'master' of https://github.com/inventree/InvenTree into homepage-settings

This commit is contained in:
Matthias 2021-07-25 00:09:34 +02:00
commit aabefc2815

View File

@ -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'] = []