mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Umm watch out for the true fix!
This commit is contained in:
		| @@ -13,11 +13,12 @@ def currency_code_default(): | |||||||
|     """ |     """ | ||||||
|     Returns the default currency code (or USD if not specified) |     Returns the default currency code (or USD if not specified) | ||||||
|     """ |     """ | ||||||
|  |     from django.db.utils import ProgrammingError | ||||||
|     from common.models import InvenTreeSetting |     from common.models import InvenTreeSetting | ||||||
|  |  | ||||||
|     try: |     try: | ||||||
|         code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY') |         code = InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY') | ||||||
|     except django.db.utils.ProgrammingError: |     except ProgrammingError: | ||||||
|         # database is not initialized yet |         # database is not initialized yet | ||||||
|         code = '' |         code = '' | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user