mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Umm watch out for the true fix!
This commit is contained in:
parent
9acd57f8e0
commit
53f2aa107a
@ -13,11 +13,12 @@ def currency_code_default():
|
||||
"""
|
||||
Returns the default currency code (or USD if not specified)
|
||||
"""
|
||||
from django.db.utils import ProgrammingError
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
try:
|
||||
code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY')
|
||||
except django.db.utils.ProgrammingError:
|
||||
except ProgrammingError:
|
||||
# database is not initialized yet
|
||||
code = ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user