mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 08:19:54 +00:00
App ready warning (#10938)
* Fix for currency functions - Prevent database access until after the 'common' app has loaded * Add decorator to selectively ignore warnings * Add reference to PR * Fix variable assignment * Use functools.wraps * Add wrapper for loading machine registry * Move decorator to ready.py * Add missing code * Set backup values to match default currency codes * Bump API version
This commit is contained in:
2
tasks.py
2
tasks.py
@@ -1466,7 +1466,7 @@ def schema(
|
||||
'False' # Disable plugins to ensure they are kep out of schema
|
||||
)
|
||||
envs['INVENTREE_CURRENCY_CODES'] = (
|
||||
'AUD,CNY,EUR,USD' # Default currency codes to ensure they are stable
|
||||
'AUD,CAD,CNY,EUR,GBP,JPY,NZD,USD' # Default currency codes to ensure they are stable
|
||||
)
|
||||
|
||||
manage(c, cmd, pty=True, env=envs)
|
||||
|
||||
Reference in New Issue
Block a user