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 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) performed by models themselves, so
> creating a model instance and saving it directly does not use any
> validation. You will need to use a form if you want to test the
> validation.
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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