[Answered ]-Django template for loop inside <select> renders values after the select

2👍

That could happen if register_as_translator_form.languages return string list, try this way:

    <select name="from[]" id="multiselect" class="form-control" size="8" multiple="multiple">
        {% for choice in register_as_translator_form.languages %}
            <option value="{{ choice }}">{{ choice }}</option>
        {% endfor %}
    </select>
👤ahmed

Leave a comment