sorry, but I still don´t get it: why is this not working? content = models.TextField(_('content'), validator_list=[self.goodHTML])
def goodHTML(self, field_data, all_data): ... thanks, patrick Am 18.09.2006 um 16:31 schrieb James Bennett: > > On 9/18/06, patrickk <[EMAIL PROTECTED]> wrote: >> is it possible to define a custom validator in a model? if yes, how? >> so far, I´ve used custom validators only with custom manipulators and >> that works fine. > > Any callable that could be used as a validator in a manipulator can > also be passed in to a field on a model by using the optional > 'validator_list' keyword argument. > > -- "May the forces of evil become confused on the way to your house." > -- George Carlin > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---