diff --git a/poetry.lock b/poetry.lock index 1a434730c..c819f4adb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1969,6 +1969,11 @@ files = [ {file = "regex-2024.5.15-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:72d7a99cd6b8f958e85fc6ca5b37c4303294954eac1376535b03c2a43eb72629"}, {file = "regex-2024.5.15-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:a094801d379ab20c2135529948cb84d417a2169b9bdceda2a36f5f10977ebc16"}, {file = "regex-2024.5.15-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:c0c18345010870e58238790a6779a1219b4d97bd2e77e1140e8ee5d14df071aa"}, + {file = "regex-2024.5.15-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:16093f563098448ff6b1fa68170e4acbef94e6b6a4e25e10eae8598bb1694b5d"}, + {file = "regex-2024.5.15-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:e38a7d4e8f633a33b4c7350fbd8bad3b70bf81439ac67ac38916c4a86b465456"}, + {file = "regex-2024.5.15-cp39-cp39-win32.whl", hash = "sha256:71a455a3c584a88f654b64feccc1e25876066c4f5ef26cd6dd711308aa538694"}, + {file = "regex-2024.5.15-cp39-cp39-win_amd64.whl", hash = "sha256:cab12877a9bdafde5500206d1020a584355a97884dfd388af3699e9137bf7388"}, + {file = "regex-2024.5.15.tar.gz", hash = "sha256:d3ee02d9e5f482cc8309134a91eeaacbdd2261ba111b0fef3748eeb4913e6a2c"}, ] [[package]] @@ -2322,4 +2327,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "36b1b05da39f4f47e4a34b67dcbc1186538807dbc12e68236e7512f8aae481a9" +content-hash = "c07ee121dd2f3348ed5e7d65b0e130134d6dbf016862014ab1e3b52a51c9f81b" diff --git a/pyproject.toml b/pyproject.toml index 05ab4e67c..4bfa580c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ drf-yasg = "1.21.7" graphviz = "0.20.3" django-taggit = "5.0.1" mike = "2.1.1" -martor = "1.6.44" +martor = "^1.6.44" django-tempus-dominus = "5.1.2.17" gunicorn = "21.2.0" django-tables2 = "2.7.0" diff --git a/service_catalog/views/common.py b/service_catalog/views/common.py index 1a618599c..e845abd0c 100644 --- a/service_catalog/views/common.py +++ b/service_catalog/views/common.py @@ -23,7 +23,7 @@ def markdown_uploader(request): Makdown image upload for locale storage and represent as json to markdown editor. """ - if request.method == 'POST' and request.is_ajax(): + if request.method == 'POST' and request.headers.get('x-requested-with') == 'XMLHttpRequest': if 'markdown-image-upload' in request.FILES: image = request.FILES['markdown-image-upload'] image_types = [