On Feb 7, 2008 5:57 PM, Mackenzie Kearl <[EMAIL PROTECTED]> wrote:
>
> I am having trouble finding documentation on how to add custom
> validation to a custom model field.
Please don't cross post messages between django-users and
django-developers. In addition to the general impoliteness of
cross
I am having trouble finding documentation on how to add custom
validation to a custom model field.
example:
class PostalField(models.CharField):
def __init__(self,*args,**kwargs):
kwargs['max_length']= 6
super(PostalField, self).__init__(*args, **kwargs)