I tried to follow some examples on stackoverflow for option selected in select list but still, I could not get it work.
This is my code snippet
<select name="topic_id" style="width:90%">{% for t in topics %}<option value="{{t.id}}" {% if t.id == topic_id %} selected="selected" {% endif %}>{{t.title}}{{t.id}}</option>{% endfor %}
</select>
I took the topic_id from param['topic_id'] in views.py.
Thanks!