Re: Help with Admin forms validation error

2009-09-16 Thread ankit rai
First of all keep ur form in separate file named as forms.py .What all u r importing can u describe them .And check ur if condition. if desc and len(desc)>10: rasie .. On Wed, Sep 16, 2009 at 3:57 PM, Anish wrote: > > Hi, > please check whether you import statement is this ---from django >

Re: Help with Admin forms validation error

2009-09-16 Thread Anish
Hi, please check whether you import statement is this ---from django import forms On Sep 16, 3:15 pm, "adee...@googlemail.com" wrote: > Hi Guys, > > I am quite new to Django, I'm having few problems with validation > forms in Admin module, more specifically with raising exception in the > ModelF

Help with Admin forms validation error

2009-09-16 Thread adee...@googlemail.com
Hi Guys, I am quite new to Django, I'm having few problems with validation forms in Admin module, more specifically with raising exception in the ModelForm. I can validate and manipulate data in clean methods but cannot seem to raise any errors. Whenever I include any raise statement I get this e