Merge branch 'main' into storefront-nuxt
This commit is contained in:
commit
6fd21183fe
2 changed files with 5 additions and 2 deletions
|
|
@ -504,6 +504,7 @@ class VendorAdmin(FieldsetsMixin, ActivationActionsMixin, ModelAdmin): # type:
|
|||
"uuid",
|
||||
"modified",
|
||||
"created",
|
||||
"last_processing_response",
|
||||
)
|
||||
form = VendorForm
|
||||
general_fields = [
|
||||
|
|
@ -516,7 +517,7 @@ class VendorAdmin(FieldsetsMixin, ActivationActionsMixin, ModelAdmin): # type:
|
|||
"users",
|
||||
]
|
||||
additional_fields = [
|
||||
"additional_fields",
|
||||
"last_processing_response",
|
||||
"b2b_auth_token",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -139,10 +139,12 @@ def get_project_parameters() -> Any:
|
|||
configuration source, formats their keys to lowercase, and then stores
|
||||
them in the cache for a limited period.
|
||||
"""
|
||||
parameters = cache.get("parameters")
|
||||
parameters = cache.get("parameters", {})
|
||||
|
||||
if not parameters:
|
||||
for key in EXPOSABLE_KEYS:
|
||||
if not getattr(config, key):
|
||||
continue
|
||||
parameters[key.lower()] = getattr(config, key)
|
||||
|
||||
cache.set("parameters", parameters, 60 * 60)
|
||||
|
|
|
|||
Loading…
Reference in a new issue