diff --git a/src/backend/InvenTree/common/models.py b/src/backend/InvenTree/common/models.py index e0f8ef34f5..90486e9f12 100644 --- a/src/backend/InvenTree/common/models.py +++ b/src/backend/InvenTree/common/models.py @@ -1216,7 +1216,9 @@ class InvenTreeSetting(BaseInvenTreeSetting): even if that key does not exist. """ - SETTINGS: dict[str, InvenTreeSettingsKeyType] + from common.setting.system import SYSTEM_SETTINGS + + SETTINGS: dict[str, InvenTreeSettingsKeyType] = SYSTEM_SETTINGS CHECK_SETTING_KEY = True @@ -1282,9 +1284,6 @@ class InvenTreeSetting(BaseInvenTreeSetting): The keys must be upper-case """ - from common.setting.system import SYSTEM_SETTINGS - - SETTINGS = SYSTEM_SETTINGS typ = 'inventree' @@ -1310,6 +1309,8 @@ class InvenTreeUserSetting(BaseInvenTreeSetting): import common.setting.user + SETTINGS = common.setting.user.USER_SETTINGS + CHECK_SETTING_KEY = True class Meta: @@ -1321,8 +1322,6 @@ class InvenTreeUserSetting(BaseInvenTreeSetting): models.UniqueConstraint(fields=['key', 'user'], name='unique key and user') ] - SETTINGS = common.setting.user.USER_SETTINGS - typ = 'user' extra_unique_fields = ['user'] diff --git a/src/backend/InvenTree/stock/test_api.py b/src/backend/InvenTree/stock/test_api.py index e997a113a1..405f90a6b8 100644 --- a/src/backend/InvenTree/stock/test_api.py +++ b/src/backend/InvenTree/stock/test_api.py @@ -962,7 +962,9 @@ class StockItemListTest(StockAPITestCase): # Note: While the export is quick on pgsql, it is still quite slow on sqlite3 with self.export_data( - self.list_url, max_query_count=50, max_query_time=9.0 + self.list_url, + max_query_count=50, + max_query_time=12.0, # Test time increased due to worker variability ) as data_file: data = self.process_csv(data_file)