On Feb 15, 10:31 pm, cootetom <coote...@gmail.com> wrote:
> Thanks Javier but I'm having problems with that. I do want to create a
> dictionary from the model first then override with the POST values.
> But when I try to make a dictionary from the model I get an 'object is
> not iterable' error.


You probably want to use model_instance.__dict__ - Python already uses
a dictionary to hold the underlying instance values in an object.
--
DR.

-- 
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.

Reply via email to