File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,6 @@ def __init__(self):
597597 self .fail = True
598598
599599 def __contains__ (self , key ):
600- """There is a test for '%s' in TEMPLATE_STRING_IF_INVALID."""
601600 return key == "%s"
602601
603602 @staticmethod
@@ -635,7 +634,6 @@ def _get_origin():
635634 return template .name
636635
637636 def __mod__ (self , var ):
638- """Handle TEMPLATE_STRING_IF_INVALID % var."""
639637 origin = self ._get_origin ()
640638 if origin :
641639 msg = "Undefined template variable '{}' in '{}'" .format (var , origin )
@@ -667,8 +665,6 @@ def _template_string_if_invalid_marker(request):
667665
668666 if dj_settings .TEMPLATES :
669667 dj_settings .TEMPLATES [0 ]["OPTIONS" ]["string_if_invalid" ].fail = False
670- else :
671- dj_settings .TEMPLATE_STRING_IF_INVALID .fail = False
672668
673669
674670@pytest .fixture (autouse = True , scope = "function" )
You can’t perform that action at this time.
0 commit comments