>(the save() method shouldn't raise
>any validation errors except those triggered by the database server due
>to IntegrityErrors).
So what is the recommended place to write validations in models, for
now?
On Feb 22, 12:25 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-02-21 at
On Thu, 2008-02-21 at 08:54 -0800, shabda wrote:
> I have some models, and some forms to write data to them. The
> attributes in models need to have soem validations, (For example, name
> must be alpha numeric, price must be less that 1000 etc). SO I write
> the validations in model.save() and
I have some models, and some forms to write data to them. The
attributes in models need to have soem validations, (For example, name
must be alpha numeric, price must be less that 1000 etc). SO I write
the validations in model.save() and raise Exceptions, when a
validation fails. I also need to
3 matches
Mail list logo