mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
parent
af68ea23c3
commit
4a32bdb7ab
@ -55,7 +55,7 @@ class InvenTreeModelMoneyField(ModelMoneyField):
|
|||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
# detect if creating migration
|
# 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
|
# remove currency information for a clean migration
|
||||||
kwargs['default_currency'] = ''
|
kwargs['default_currency'] = ''
|
||||||
kwargs['currency_choices'] = []
|
kwargs['currency_choices'] = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user