Re: possible to validate a subset of a model's fields?

2006-01-31 Thread cpburmester
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

do_html2python returns type "str" for ForiegnKey form fields

2006-01-23 Thread cpburmester
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

Re: Using Change Manipulators to Update Only a Subset of Model Data

2005-12-31 Thread cpburmester
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. >

Re: Using Change Manipulators to Update Only a Subset of Model Data

2005-12-29 Thread cpburmester
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