Re: how to get text of a ChoiceField populated with ajax

2012-05-17 Thread HDayi
hi curtis, sorry for being so late. on the page i have given the url, it's told exactly how you said. I have subclassed djangos choicefield and just changed validation method that always return true. so my own clean_fieldname method started to work fine. I am checking the returned valu if exis

Re: how to get text of a ChoiceField populated with ajax

2012-05-09 Thread HDayi
hi again, finally i have solved the problem. I have found a web page saying you must create a custom choiceField class with a custom validation method. so i did that. http://blog.ikraftsoft.com/post/1342312823/django-form-choicefield-dynamic-values thx -- You received this message because yo

Re: how to get text of a ChoiceField populated with ajax

2012-05-09 Thread HDayi
hi Kurtis and Frances after populating the ChoiceField it looks like this First Second at first values were number but django form returns the value for this ChoiceField after validation. I don't have a clean_teacher method because i don't know what to do. i think the probl

how to get text of a ChoiceField populated with ajax

2012-05-08 Thread HDayi
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