hi Kurtis and Frances
after populating the ChoiceField it looks like this
<select id="id_teacher" name="teacher">
<option value="First">First</option>
<option value="Second">Second</option>
</select>
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 problem is that: when the form is first created coice list for
this ChoiceField is empty. after that what ever it returns is not included
in the choice list because it's empty. i need to add a choice list in the
clean method but i don't know how.
when i gogled everybody was talking about a web page (django gotchas or
someting like that) but link was always broken. :(
--
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/-/FHF67cmYklQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.