Re: custom model field validation

2008-02-07 Thread Russell Keith-Magee
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

custom model field validation

2008-02-07 Thread Mackenzie Kearl
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)