生成的模板所以我有這樣的代碼在谷歌應用程序引擎模板:不正確渲染
<select name='voter'>
{% for voter in allowed_voters %}
<option {% ifequal voter last_voter %}selected="yes" {% endifequal %}
value='{{voter}}'>{{voter}}</option>
{% endfor %}
</select>
的頁面不選擇正確的人,而不是默認的第一個選項渲染。查看源代碼顯示,生成的html已將選定的屬性放在正確的位置,所以我無法弄清楚爲什麼這種方式不起作用。
感謝您的幫助,結果發現問題在別處。 – wodemoneke 2009-01-22 12:33:50