mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Deprecated TEMPLATE_STRING_IF_INVALID.
This commit is contained in:
@@ -53,7 +53,7 @@ class CallableVariablesTests(TestCase):
|
||||
c = template.Context({"my_doodad": my_doodad})
|
||||
|
||||
# Since ``my_doodad.alters_data`` is True, the template system will not
|
||||
# try to call our doodad but will use TEMPLATE_STRING_IF_INVALID
|
||||
# try to call our doodad but will use string_if_invalid
|
||||
t = template.Template('{{ my_doodad.value }}')
|
||||
self.assertEqual(t.render(c), '')
|
||||
t = template.Template('{{ my_doodad.the_value }}')
|
||||
|
||||
Reference in New Issue
Block a user