diff --git a/django/core/jinja_config.py b/django/core/jinja_config.py index 1a560f6fb..0741f83bd 100644 --- a/django/core/jinja_config.py +++ b/django/core/jinja_config.py @@ -11,7 +11,8 @@ from django.utils.dateparse import parse_datetime from django.utils.text import slugify from django.utils.timezone import get_current_timezone -from jinja2 import Environment, Markup +from jinja2 import Environment +from markupsafe import Markup from hcaptcha_field import hCaptchaField from typing import Optional