Skip to content

Commit

Permalink
Stop setting TEMPLATE_STRING_IF_INVALID, no longer in supported Djang…
Browse files Browse the repository at this point in the history
…o version
  • Loading branch information
bluetech committed Oct 16, 2020
1 parent b97cdb9 commit 002be61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pytest_django/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,7 @@ def __mod__(self, var):
from django.conf import settings as dj_settings

if dj_settings.TEMPLATES:
dj_settings.TEMPLATES[0]["OPTIONS"][
"string_if_invalid"
] = InvalidVarException()
else:
dj_settings.TEMPLATE_STRING_IF_INVALID = InvalidVarException()
dj_settings.TEMPLATES[0]["OPTIONS"]["string_if_invalid"] = InvalidVarException()


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit 002be61

Please sign in to comment.