diff --git a/django/core/template/defaultfilters.py b/django/core/template/defaultfilters.py index c9a5ff931b..9fa6f4526f 100644 --- a/django/core/template/defaultfilters.py +++ b/django/core/template/defaultfilters.py @@ -282,7 +282,7 @@ def unordered_list(value): indent = '\t' * tabs if value[1]: return '%s
  • %s\n%s\n%s
  • ' % (indent, value[0], indent, - '\n'.join([unordered_list(v, tabs+1) for v in value[1]]), indent, indent) + '\n'.join([_helper(v, tabs+1) for v in value[1]]), indent, indent) else: return '%s
  • %s
  • ' % (indent, value[0]) return _helper(value, 1)