Hello,

I have a form with a ModelChoiceField, and when I want to create a new
bound form using the first form cleaned_data (that I stored in a
session before), I get an error when rendering the template ("Caught
TypeError while rendering: int() argument must be a string or a
number").
This is because  ModelChoiceField cleaned_data normalizes to an
object, not to the id of the object, (id that is the expected int).

So, what is the correct way to create a bound form of
ModelChoiceField? I  could store request.POST or myform.data instead
of myform.cleaned_data, but I don't know if this is right.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.

Reply via email to