python3-django: Fix missing JSONField in django.db.models

Fix the following error introduced by CVE-2024-42005.patch:

AttributeError: module 'django.db.models' has no attribute 'JSONField'

The patch assumes JSONField is available from django.db.models, which
is not the case for this Django version.

Revert the changes in the following files to restore compatibility:
tests/expressions/models.py
tests/expressions/test_queryset_values.py

Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Haixiao Yan
2026-01-14 10:43:12 +08:00
committed by Gyorgy Sarvari
parent bca6ddaa0d
commit c1d50d3e50
2 changed files with 78 additions and 0 deletions
@@ -33,6 +33,7 @@ SRC_URI += "file://CVE-2023-31047.patch \
file://CVE-2025-32873.patch \
file://CVE-2025-64459.patch \
file://Fix-undefined-_lazy_re_compile.patch \
file://Fix-missing-JSONField-in-django.db.mo.patch \
"
SRC_URI[sha256sum] = "0200b657afbf1bc08003845ddda053c7641b9b24951e52acd51f6abda33a7413"