On May 30, 3:40 pm, Jesse <adles...@gmail.com> wrote:
> I have three drop down select boxes, which I have to expand for web
> visibility reasons with the size='' option.  If I select one from each
> box I receive no errors, but if I leave one or more boxes without a
> selection I receive an error.
>
>  <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''],

The error is clearly in your view, so you will need to post that.

Is there a reason why you're not using Django forms here?
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to