title: How to set a selected item in Django form?
body: <p>I have a <code>&lt;select&gt;</code> field in my Django form and what I'd like to do is set an <code>&lt;option&gt;</code> to <code>selected</code> depending on if the item has a certain value. The value is being passed as a <code>GET</code> variable and contains an id of a page. How can I make it <code>if value == &lt;GET variable&gt;: set option tag to selected</code> ?</p>