You have to make sure that the javascript code that populates the second select box sets the value properly, or create a custom form validation (custom form/field clean methods).
On Tuesday, May 8, 2012 5:59:19 AM UTC+2, HDayi wrote: > > hi people, > i am new to all of this. > i have a form which has several selcet boxes. one is a > ModelChoiceField gets school list from database. the other is only a > ChoiceField and it's empty. when school is chosen i populate the > ChoiceField using dajax. it works perfectly but... > > while validating the form when calculating the cleaned_data value > returns index of the selected item and django does not validate the > form. > > can you help me on this? > thx > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ezZh3lD2mRcJ. 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.