Don't know if this is applicable to you situation, but what I've done
when I want to use the manipulator to validate a subset of fields is
the following:
1. pass your copy of the POSTed data containing the subset of data you
want to validate to the manipulator as normal for validation. The
I've noticed that a foriegn key value in data posted to a view method
is still a string after a call to do_html2python. However, it's
returned as an int (what I would expect) from flatten_data().
Is this a bug or is this intended behavior?
It's causing a bug in my template code where I compare
Luke Plant wrote:
> I think the purpose of manipulators is to take the donkey work out
> of updating multiple fields. If it's only one field, then why bother
> with the manipulator? Just grab the object, read the request.POST data
> for the one field, update the object and save it.
>
Addendum:
I see one reccommendation described at:
http://code.djangoproject.com/wiki/CookBookManipulatorWithPostpopulatedFields
but I'm trying to do the inverse - allow the update of only, say, one
field and keep the rest the same whereas this example is preserving a
few and updating the
4 matches
Mail list logo