mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28662 -- Silenced join template filter error if arg isn't iterable.
This commit is contained in:
parent
d4fb742094
commit
f7036b3e26
2 changed files with 11 additions and 3 deletions
|
@ -65,3 +65,11 @@ class FunctionTests(SimpleTestCase):
|
|||
join(['<a>', '<img>', '</a>'], '<br>', autoescape=False),
|
||||
'<a><br><img><br></a>',
|
||||
)
|
||||
|
||||
def test_noniterable_arg(self):
|
||||
obj = object()
|
||||
self.assertEqual(join(obj, '<br>'), obj)
|
||||
|
||||
def test_noniterable_arg_autoescape_off(self):
|
||||
obj = object()
|
||||
self.assertEqual(join(obj, '<br>', autoescape=False), obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue