Features: 1) Add camelize utility to process cached parameters for consistent response formatting;
Fixes: ; Extra: 1) Modify return statement to utilize camelize function;
This commit is contained in:
parent
916648cf72
commit
bc4e76edde
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ from constance import config
|
|||
from django.core.cache import cache
|
||||
from django.db import transaction
|
||||
from django.utils.crypto import get_random_string
|
||||
from djangorestframework_camel_case.util import camelize
|
||||
|
||||
from evibes.settings import DEBUG, EXPOSABLE_KEYS, LANGUAGE_CODE
|
||||
|
||||
|
|
@ -119,7 +120,7 @@ def get_project_parameters():
|
|||
|
||||
cache.set("parameters", parameters, 60 * 60)
|
||||
|
||||
return parameters
|
||||
return camelize(parameters)
|
||||
|
||||
|
||||
def resolve_translations_for_elasticsearch(instance, field_name):
|
||||
|
|
|
|||
Loading…
Reference in a new issue