From 4a32bdb7ab97029d592009e291511a97e6a6c5a4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 24 Jul 2021 01:30:53 +0200 Subject: [PATCH] fix for phantom migration warning Closes #1775 --- InvenTree/InvenTree/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/fields.py b/InvenTree/InvenTree/fields.py index 462d2b0e0e..cd98bf50c7 100644 --- a/InvenTree/InvenTree/fields.py +++ b/InvenTree/InvenTree/fields.py @@ -55,7 +55,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'] = []