Re: Using validators against model fields

2008-07-08 Thread Ayaz Ahmed Khan
On Jul 8, 9:50 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Django does not do any model field validation by default at the moment. > Admin does it using an old system (essentially, oldforms and Add- and > ChangeManipulators) that is being removed. We are adding more coherent > model

Re: Using validators against model fields

2008-07-07 Thread Malcolm Tredinnick
On Mon, 2008-07-07 at 21:34 -0700, Ayaz Ahmed Khan wrote: > I have a model with a CharField against which I have defined a > validator, thus: > > class Info(models.Model): > text = models.CharField(validator_list=[validators.isOnlyDigits]) > > When using a ModelForm of that Model in a

Using validators against model fields

2008-07-07 Thread Ayaz Ahmed Khan
I have a model with a CharField against which I have defined a validator, thus: class Info(models.Model): text = models.CharField(validator_list=[validators.isOnlyDigits]) When using a ModelForm of that Model in a view, Django fails to apply the validators.isOnlyDigits validation check. If