#35602: Allow simple_tag to be defined and used in a for loop
-------------------------------------+-------------------------------------
     Reporter:  Henrique Lacreta     |                    Owner:  (none)
  Alves                              |
         Type:  New feature          |                   Status:  closed
    Component:  Template system      |                  Version:  4.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  tag, simple_tag,     |             Triage Stage:
  forloop                            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

 * cc: Baptiste Mispelon, Tom Carrick, Carlton Gibson (added)
 * keywords:  tag, simple_tag => tag, simple_tag, forloop

Comment:

 On your earlier point that `{% for object in ""|filter_tag %}` works,
 #19882 is related.
 I might have been too hasty and am not sure whether this should be a bug
 as you originally thought. Going to invite some other opinions

 > Do you think this would make sense/should I create a documentation
 suggestion?

 Possibly, though the docs for the **as** argument of
 [https://docs.djangoproject.com/en/5.0/howto/custom-template-
 tags/#django.template.Library.simple_tag simple_tag] read quite well to me
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35602#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070190bb1f0473-ebebb035-be06-44c5-8665-7a9060da37f1-000000%40eu-central-1.amazonses.com.

Reply via email to