jorgebastida / django-dajax

Easy to use library to create asynchronous presentation logic with django and dajaxice
http://dajaxproject.com/
BSD 3-Clause "New" or "Revised" License
346 stars 99 forks source link

Error Validating Form with Many-to-Many Field #44

Closed mikes000 closed 12 years ago

mikes000 commented 12 years ago

I am having an issue where when I try to validate a form from a model with a Many-to-Many field. The Form will not validate unless I select more than one item from the select-box.

Model validates fine when submitting form with standard POST method

Using jQuery serializeObject script as suggested in the tutorial

mikes000 commented 12 years ago

This issue can be resolved by using a different serializeObject jQuery script

https://github.com/danheberden/serializeObject

solution was found by: toasterleavings on stackoverflow :D

http://stackoverflow.com/questions/11567495/django-dajax-validating-model-with-many-to-many-field