Hi all,

after some more thinking, the workaround I came up with is now:

if form.is_valid():
    for key in form.cleaned_data.keys():
        if not key in request.POST: del form.cleaned_data[key]
    form.save()

This removes all values that are not found in the original request
from the form data before saving. Is this the way the pro's in this
group would do it?

I could still see some demand to put this into the core form logic
(controllable by a flag), what do you think?

Best regards and shout outs to everyone using Django,

Flo

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