#13665: ifequal condition doesn't work in {% for %} variable
----------------------------------+-----------------------------------------
 Reporter:  Pablo                 |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  Template system       |     Version:  1.1       
 Keywords:  ifequal for variable  |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 Good evening,

 I'm developping a select input loaded dynamically. I've stored the
 selected input in a variable and while the select it's being loaded, I
 check group variable on selMenuGroup variable, but it doesn't work.

 {% for group in aGroups %}
      <option{% ifequal selMenuGroup group %} selected{% endifequal %}
 value="{{ group }}">{{ group }}</option>
 {% endfor %}

 So, if I check on the variable content it works perfectly.

 {% for group in aGroups %}
      <option{% ifequal selMenuGroup 'group_content' %} selected{%
 endifequal %} value="{{ group }}">{{ group }}</option>
 {% endfor %}

 Thank you very much.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13665>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to