So I have this code in a google app engine template:
<select name='voter'>
{% for voter in allowed_voters %}
<option {% ifequal voter last_voter %}selected="yes" {% endifequal %}
value='{{voter}}'>{{voter}}</option>
{% endfor %}
</select>
The page doesn't render with the correct person selected, defaulting instead to the 1st option. Viewing the source shows me that the generated html has put the selected attribute in the correct place, so I can't figure out why this isn't working.