fix: depr enable_xblock_xml_validation (#37810)

This commit is contained in:
Irtaza Akram
2026-01-05 13:35:29 +05:00
committed by GitHub
parent 67819a6efc
commit 50a0691a8a
2 changed files with 1 additions and 4 deletions

View File

@@ -866,9 +866,6 @@ ENABLE_CSMH_EXTENDED = True
# making multiple queries.
ENABLE_READING_FROM_MULTIPLE_HISTORY_TABLES = True
# Set this to False to facilitate cleaning up invalid xml from your modulestore.
ENABLE_XBLOCK_XML_VALIDATION = True
# .. toggle_name: ALLOW_PUBLIC_ACCOUNT_CREATION
# .. toggle_implementation: DjangoSetting
# .. toggle_default: True

View File

@@ -289,7 +289,7 @@ class _BuiltInProblemBlock(
data = XMLString(
help=_("XML data for the problem"),
scope=Scope.content,
enforce_type=FEATURES.get("ENABLE_XBLOCK_XML_VALIDATION", True),
enforce_type=True,
default="<problem></problem>",
)
correct_map = Dict(