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",
|
"uuid",
|
||||||
"modified",
|
"modified",
|
||||||
"created",
|
"created",
|
||||||
|
"last_processing_response",
|
||||||
)
|
)
|
||||||
form = VendorForm
|
form = VendorForm
|
||||||
general_fields = [
|
general_fields = [
|
||||||
|
|
@ -516,7 +517,7 @@ class VendorAdmin(FieldsetsMixin, ActivationActionsMixin, ModelAdmin): # type:
|
||||||
"users",
|
"users",
|
||||||
]
|
]
|
||||||
additional_fields = [
|
additional_fields = [
|
||||||
"additional_fields",
|
"last_processing_response",
|
||||||
"b2b_auth_token",
|
"b2b_auth_token",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,10 +139,12 @@ def get_project_parameters() -> Any:
|
||||||
configuration source, formats their keys to lowercase, and then stores
|
configuration source, formats their keys to lowercase, and then stores
|
||||||
them in the cache for a limited period.
|
them in the cache for a limited period.
|
||||||
"""
|
"""
|
||||||
parameters = cache.get("parameters")
|
parameters = cache.get("parameters", {})
|
||||||
|
|
||||||
if not parameters:
|
if not parameters:
|
||||||
for key in EXPOSABLE_KEYS:
|
for key in EXPOSABLE_KEYS:
|
||||||
|
if not getattr(config, key):
|
||||||
|
continue
|
||||||
parameters[key.lower()] = getattr(config, key)
|
parameters[key.lower()] = getattr(config, key)
|
||||||
|
|
||||||
cache.set("parameters", parameters, 60 * 60)
|
cache.set("parameters", parameters, 60 * 60)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue