I am newbie in django. I am using simple ajax to dynamically update the choice field semester on the basis of course selection. But while s
Another solution is to over-ride the valid_value() method of the ChoiceField. If you are not worried about the possible values the form could return, then it's as simple as this:
class AjaxChoiceField(forms.ChoiceField):
def valid_value(self, value):
return True
Or you could add more validation if needed.