mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Deprecated TEMPLATE_STRING_IF_INVALID.
This commit is contained in:
parent
3dc01aaaaf
commit
d3a982556d
9 changed files with 44 additions and 33 deletions
|
|
@ -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 }}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue