>     item = Item.objects.get(id=1)
>     print 'item.value: %s' % item.value
>     form = ItemModelForm(request.POST, instance=item)
>     # NOTE: This fixes the problem:
>     old_item = copy.deepcopy(item)
>     if form.is_valid():
>         print 'old_item.value: %s' % old_item.value
>         print "form.cleaned_data['value']: %s" %
> form.cleaned_data['value']
>         new_item = form.save(commit=False)
>         print 'new_item.value: %s' % new_item.value

What about many-to-many fields?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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.

Reply via email to