The result:
{{{
>>> from django.template import defaultfilters
>>> print str(defaultfilters.unordered_list(['a', 'a', ['b']]))
<li>a</li>
<li>a</li>
<li>['b']</li>
}}}
See pull request with a test and a fix:
https://github.com/django/django/pull/4917
--
Ticket URL: <https://code.djangoproject.com/ticket/25031>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* severity: Normal => Release blocker
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Regression in b3660d28f3422a33a84de7a7ccad404b3135a1a8
--
Ticket URL: <https://code.djangoproject.com/ticket/25031#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"e291fc4757e952fd4f663d88adca416b016db13e" e291fc4]:
{{{
#!CommitTicketReference repository=""
revision="e291fc4757e952fd4f663d88adca416b016db13e"
Fixed #25031 -- Fixed a regression in the unordered_list template filter.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25031#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fd61ce3817251c487fd98c3ed178a8258775329e" fd61ce38]:
{{{
#!CommitTicketReference repository=""
revision="fd61ce3817251c487fd98c3ed178a8258775329e"
[1.8.x] Fixed #25031 -- Fixed a regression in the unordered_list template
filter.
Backport of e291fc4757e952fd4f663d88adca416b016db13e from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25031#comment:3>
* status: closed => new
* resolution: fixed =>
Comment:
This is still causing me trouble.
--
Ticket URL: <https://code.djangoproject.com/ticket/25031#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
Please open a new ticket with steps to reproduce the issue, thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/25031#comment:5>