mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
🔧(backend) expose CONVERSION_UPLOAD_ENABLED in config endpoint
The frontend application needs to know the value of the settings CONVERSION_UPLOAD_ENABLED to allow the file upload or not.
This commit is contained in:
parent
05423d4f04
commit
f4ded8ee55
2 changed files with 3 additions and 0 deletions
|
|
@ -2676,6 +2676,7 @@ class ConfigView(drf.views.APIView):
|
|||
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY",
|
||||
"CONVERSION_FILE_EXTENSIONS_ALLOWED",
|
||||
"CONVERSION_FILE_MAX_SIZE",
|
||||
"CONVERSION_UPLOAD_ENABLED",
|
||||
"CRISP_WEBSITE_ID",
|
||||
"ENVIRONMENT",
|
||||
"FRONTEND_CSS_URL",
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ pytestmark = pytest.mark.django_db
|
|||
API_USERS_SEARCH_QUERY_MIN_LENGTH=6,
|
||||
COLLABORATION_WS_URL="http://testcollab/",
|
||||
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY=True,
|
||||
CONVERSION_UPLOAD_ENABLED=False,
|
||||
CRISP_WEBSITE_ID="123",
|
||||
FRONTEND_CSS_URL="http://testcss/",
|
||||
FRONTEND_JS_URL="http://testjs/",
|
||||
|
|
@ -56,6 +57,7 @@ def test_api_config(is_authenticated):
|
|||
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY": True,
|
||||
"CONVERSION_FILE_EXTENSIONS_ALLOWED": [".docx", ".md"],
|
||||
"CONVERSION_FILE_MAX_SIZE": 20971520,
|
||||
"CONVERSION_UPLOAD_ENABLED": False,
|
||||
"CRISP_WEBSITE_ID": "123",
|
||||
"ENVIRONMENT": "test",
|
||||
"FRONTEND_CSS_URL": "http://testcss/",
|
||||
|
|
|
|||
Loading…
Reference in a new issue