python3-django: handle non-existing import from CVE patch

This change is for python3-django_2.2.28.

During backporting a patch for CVE-2024-56374, an import got into
the patch for v2.2.28 that does not exist yet in that version.

This patch handles this import with a fallback to prevent throwing
and ImportError.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2026-01-15 09:29:10 +01:00
parent 2e331249b2
commit 6d3dcbce79
2 changed files with 36 additions and 1 deletions
@@ -36,7 +36,8 @@ SRC_URI += "file://CVE-2023-31047.patch \
file://Fix-missing-JSONField-in-django.db.mo.patch \
file://0001-Fixed-35172-Fixed-intcomma-for-string-floats.patch \
file://0001-implement-group-method-for-FakeMatch.patch \
"
file://0001-fix-ipv6-test.patch \
"
SRC_URI[sha256sum] = "0200b657afbf1bc08003845ddda053c7641b9b24951e52acd51f6abda33a7413"