1
0
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:
Aymeric Augustin
2014-12-14 23:13:03 +01:00
parent 3dc01aaaaf
commit d3a982556d
9 changed files with 44 additions and 33 deletions

View File

@@ -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 }}')