mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in blocktrans
Thanks keturn for the reporti, Chris Medrela for details and Tim Graham for the review. Refs #19915.
This commit is contained in:
parent
8847a0c601
commit
02add43568
2 changed files with 10 additions and 2 deletions
|
@ -1507,6 +1507,8 @@ class TemplateTests(TestCase):
|
|||
'invalidstr04_2': ('{% if var|default:"Foo" %}Yes{% else %}No{% endif %}', {}, 'Yes'),
|
||||
'invalidstr05': ('{{ var }}', {}, ('', ('INVALID %s', 'var'))),
|
||||
'invalidstr06': ('{{ var.prop }}', {'var': {}}, ('', ('INVALID %s', 'var.prop'))),
|
||||
'invalidstr07': ('{% load i18n %}{% blocktrans %}{{ var }}{% endblocktrans %}',
|
||||
{}, ('', ('INVALID %s', 'var'))),
|
||||
|
||||
### MULTILINE #############################################################
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue