hi,
i have in my template:
<select name="meetingTimeDay">
{% for k in days2 %}
<option value="{{ forloop.counter0 }}"{% ifequal c.meetingTime|date:"w", forloop.counter0 %}selected="selected"{% endifequal %}>{{ k }}</option>
{% endfor %}
</select>
where days2 is:
days2 = ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
but the ifequal doesn't work. i render out both forloop.counter0 and meetingTime|date:"w" and 1 day WILL match visually. I think it may be a casting problem.
any ideas?