hi all, i am trying to write auto populated select box by using jquery and ModelChoiceField. I have 2 variables cates and subcates, the first one take all the objects from the Category model, the second takes None object (Subcategory.objects.none ()). at first the html rendering is fine. When i select the cates box, it will connect with the server (by using ajax) and populate the subcates box (jquery code will change the <option> tag in the subcates box and replace with the new data retrieved from the server) and everything is all right. However, when i press submit, i get the error "Select a valid choice. That choice is not one of the available choices." is it because i changed the value of the subcates box in the client side without notifying back to server. Can you suggest any solution for this ?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.