It was possible in the past with validator_list. Like:

regex = r'^[A-z][\w-]{2,31}$'

name = models.CharField(max_length=32, unique=True ,
validator_list=[validators.MatchesRegularExpression(regex)] )


But with what code to override the clean method? Is there any sample or
built in function for this purpose?

Thanks,

2011/2/4 Shawn Milochik <[email protected]>

> The easiest thing to do is override the clean on your form.
>
> Shawn
>
> --
> 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]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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.

Reply via email to