We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97cdb9 commit 002be61Copy full SHA for 002be61
pytest_django/plugin.py
@@ -653,11 +653,7 @@ def __mod__(self, var):
653
from django.conf import settings as dj_settings
654
655
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()
+ dj_settings.TEMPLATES[0]["OPTIONS"]["string_if_invalid"] = InvalidVarException()
661
662
663
@pytest.fixture(autouse=True)
0 commit comments