<select> <option value=""> </option> {% for value in values %} <option value="{{ value|raw }}"{{ value in selected_values ? " selected" }}>{{ value|raw }}</option> {% endfor %} </select>