mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
CI was not completely fixed
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
@ -15,7 +15,11 @@ def currency_code_default():
|
||||
"""
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
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'
|
||||
|
Reference in New Issue
Block a user