title: Django: Select option in template
body: <p>In my Django template, I am using the list of objects in a drop down menu. I am processing it based on the selection.</p>
  
  <p><strong>The HTML Template:</strong> </p>
  
  <pre><code>&lt;select id="org" name="org_list" onChange="redirectUrl()"&gt;
    &lt;option  value="" selected="selected"&gt;---SELECT---&lt;/option&gt;
    {% for org in organisation %}
     &lt;option value="{{org.id}}"&gt;{{org.name|capfirst}}&lt;/option&gt;
    {% endfor %}
  &lt;/select&gt;
  </code></pre>
  
  <p>The problem is that when I am selecting the value from the drop down menu, I am getting the contents which belong to the selection. Since the attribute <strong>selected="selected"</strong> which only fixes to the <strong>"---SELECT---"</strong>  element, unless I put the <strong>selected="selected"</strong> in</p>
  
  <pre><code>&lt;option value="{{org.id}}" selected="selected"&gt;{{org.name|capfirst}}&lt;/option&gt;
  </code></pre>
  
  <p>In these organisation, the <em>last iterated element</em> is only being fixed with drop down. But I want the selected element to be displayed in the drop down menu.</p>
  
  <p>How can I solve this issue?</p>