Hi all,

the documentation on creating custom views to change a model http://www.djangoproject.com/documentation/forms/ contains the lines

if request.POST :
        new_data = request.POST.copy()
        errors = manipulator.get_validation_errors(new_data)
        if not errors:
            manipulator.do_html2python(new_data)
            manipulator.save(new_data)

            # Do a post-after-redirect so that reload works, etc.
            return HttpResponseRedirect("/places/edit/%i/" % place.id)
else:
        errors = {}
        # This makes sure the form accurate represents the fields of the place.
        new_data = place.__dict__

however, when having a model with many-to-many and foreign-key-relationships I seem to need a MultiValueDict as the keys for the relations are not included in the dict.

How can I get at such a MultiValueDict?

Thanks

chris



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to