#35602: Fix simple_tag use in for loop
-------------------------------------+-------------------------------------
Reporter: henriquelalves | Type: Bug
Status: new | Component: Template
| system
Version: 4.2 | Severity: Normal
Keywords: tag, simple_tag | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Currently, simple_tag cannot be used in the context of a loop, e.g.:
{% for object in simple_tag %}
I'm assuming this is not intended, because the following code works with a
filter tag (and is the workaround to avoid having to create a new HTML
template with inclusion tags):
{% for object in ""|filter_tag %}
This was tested in 4.2 version, not in 5.0 yet.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35602>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.