Ich habe drei Dropdown-Auswahlfelder, die ich aus Gründen der Websichtbarkeit erweitern muss, mit der Option size = ''. Wenn ich eine Option aus jeder Box wählen erhalte ich keine Fehler, aber wenn ich verlassen eine oder mehr Boxen ohne Auswahl, erhalte ich eine Fehlermeldung:Django wählen Boxgröße Option
<select id="pathology_id" name="pathology_id" size="5">
{% for pathology in pathology_list %}
<option value="{{ pathology.id }}">{{ pathology.pathology }}</option>
{% endfor %}
</select>
<select id="commodity_id" name="commodity_id" size="5">
{% for commodity in commodity_list %}
<option value="{{ commodity.id }}">{{ commodity.commodity }}</option>
{% endfor %}
</select>
<select id="technology_id" name="technology_id" size="5">
{% for technology in technology_list %}
<option value="{{ technology.id }}">{{ technology.technology }}</option>
{% endfor %}
</select>
ERROR:
MultiValueDictKeyError
Exception Value:
"Key 'pathology_id' not found in <QueryDict: {u'q': [u''],
Wie die Ansicht auf Code, um ein Drop-Down-Box, die nicht zu akzeptieren Auswahl?