mirror of
https://github.com/django/django.git
synced 2024-11-24 02:47:35 +01:00
Switched to default ON for multiline template tags
This commit is contained in:
parent
1463881c96
commit
5ccedf038a
@ -1,4 +1,5 @@
|
||||
import functools
|
||||
import warnings
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils.functional import cached_property
|
||||
@ -8,6 +9,7 @@ from .base import Template
|
||||
from .context import Context, _builtin_context_processors
|
||||
from .exceptions import TemplateDoesNotExist
|
||||
from .library import import_library
|
||||
from ..utils.deprecation import RemovedInDjango60Warning
|
||||
|
||||
|
||||
class Engine:
|
||||
@ -29,13 +31,13 @@ class Engine:
|
||||
libraries=None,
|
||||
builtins=None,
|
||||
autoescape=True,
|
||||
multiline=False,
|
||||
multiline=True,
|
||||
):
|
||||
# if not multiline:
|
||||
# warnings.warn(
|
||||
# "multiline support in templates will become the default in Django 6.0",
|
||||
# RemovedInDjango60Warning,
|
||||
# )
|
||||
if not multiline:
|
||||
warnings.warn(
|
||||
"multiline support in templates will become the default in Django 6.0",
|
||||
RemovedInDjango60Warning,
|
||||
)
|
||||
if dirs is None:
|
||||
dirs = []
|
||||
if context_processors is None:
|
||||
|
Loading…
Reference in New Issue
Block a user