Then what is the use of specifying callback in `validator_list`? Also,
what can I do to make the above custom validator work? I am using form
but don't know what to do to invoke the validator.
On Nov 23, 2:56 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 11/23/07, Bit Blazer <[EMAIL PROTEC
On 11/23/07, Bit Blazer <[EMAIL PROTECTED]> wrote:
> When I am trying to test this model from shell, it's just saving the
> data without any error messages when it is invalid. I don't know whats
> wrong in the code above. Any suggestions how can I fix this?
Validation is not (at the moment) perfo
Hi,
I have created a generic model class with a custom field validator to
which I have defined in the model as:
class MyModel(models.Model):
snum = models.CharField(max_length=5, validator_list=[is_valid_snum])
The function `is_valid_snum` has been defined as a global function
outside class
3 matches
Mail list logo