Skip to content

Commit 002be61

Browse files
committed
Stop setting TEMPLATE_STRING_IF_INVALID, no longer in supported Django version
1 parent b97cdb9 commit 002be61

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pytest_django/plugin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,7 @@ def __mod__(self, var):
653653
from django.conf import settings as dj_settings
654654

655655
if dj_settings.TEMPLATES:
656-
dj_settings.TEMPLATES[0]["OPTIONS"][
657-
"string_if_invalid"
658-
] = InvalidVarException()
659-
else:
660-
dj_settings.TEMPLATE_STRING_IF_INVALID = InvalidVarException()
656+
dj_settings.TEMPLATES[0]["OPTIONS"]["string_if_invalid"] = InvalidVarException()
661657

662658

663659
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)