CI was not completely fixed

This commit is contained in:
eeintech 2021-07-19 15:29:04 -04:00
parent c1db4c7b3d
commit 9acd57f8e0
2 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,6 @@ class InvenTreeMoneyField(MoneyField):
def __init__(self, *args, **kwargs):
# override initial values with the real info from database
kwargs.update(money_kwargs())
print(kwargs)
super().__init__(*args, **kwargs)

View File

@ -15,7 +15,11 @@ def currency_code_default():
"""
from common.models import InvenTreeSetting
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
try:
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
except django.db.utils.ProgrammingError:
# database is not initialized yet
code = ''
if code not in CURRENCIES:
code = 'USD'