On Fri, 2007-06-08 at 02:45 +0200, Przemyslaw Wegrzyn wrote: > Hi! > > I have some CharField's in my model, I'm using create_update generic > views to edit them. I need all text data to be strip()'ed before being > saved to database. How can this be done in the most simple way?
In the model's save() method. > > More general question - is there any elegant way to use custom > manipulators with create_update generic views? Not really; that is one of the points at which you should be thinking of writing your own views. Fortunately the problem will soon (for trunk users; in 1.0 for released version users) be moot as generic views are moved to use newforms rather than oldforms/manipulators. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

