#5172: Extend the {% for %} tag to work as a simple loop
---------------------------------------------+------------------------------
          Reporter:  SmileyChris             |         Owner:  nobody           
          
            Status:  closed                  |     Milestone:                   
          
         Component:  Template system         |       Version:                   
          
        Resolution:  wontfix                 |      Keywords:  for-tag 
enhancement feature
             Stage:  Design decision needed  |     Has_patch:  0                
          
        Needs_docs:  0                       |   Needs_tests:  0                
          
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by anonymous):

  * needs_docs:  1 => 0
  * has_patch:  1 => 0
  * version:  SVN =>

Comment:

 Replying to [comment:11 jacob]:
 > I just can't come up with a use case that isn't something better done in
 a view or better done by just writing out the rows by hand. Besides, this
 is a pretty simple thing to add as a custom tag in your app.

 This ticked is old, but to present you with a scenario that I'm into right
 now: I need to create a varying number of radiobuttons, depending of the
 number of choices allowed by the parents settings. The parent has a
 "number of objects allowed" field in the model. I therefore need to repeat
 a tag that can do the same thing {% for %}, but not iterating over an
 array or set, but just a variable number.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5172#comment:14>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to