On Mar 11, 12:56 am, Julien Phalip wrote:
> Is there a way to achieve the same type of specific validation like
> with forms?
This is new in Django dev (not sure what version of Django you are
running), but you might find the following of value:
http://docs.djangoproject.com/en/dev/ref/validator
After looking at django's code it does not look like you can just add
a clean_ method to your model like you can do with forms.
I guess a 'clean' method is the way to go here. But try to raise the
ValidationError with a error dictionary like:
ValidationError({'': ''})
So in your case that would b
Hi,
It's the first time I'm playing with model validation, and I'm a bit
stuck with something. I couldn't find any help on this mailinglist or
in the doc, but if there is please let me know where :)
Basically I'd like to validate a model field in the context of its
instance. First I assumed it wo
3 matches
Mail list logo