I'm looking for something in the framework that I think must exist somewhere but can't seem to find anything. I'm after a bit of code that takes a dictionary (a.k.a the POST dictionary) and a model instance, then merges the two into a new dictionary. The new dictionary then contains all values from the POST plus any missing values added from the model.
The reason I need this is because I have a form to modify a model but the form is a cut down form. When I save the form it blanks out any values that it didn't contain for the model. I don't want to blank out those it didn't contain, I just want to save the ones it did contain. Hope that makes sense. - Tom -- 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.