Re: Why/where are field errors caught before form.is_valid is executed

2008-09-27 Thread Gerard Petersen
I noticed that de declarative statements (directly under class) are ignored when self.fields statements are used. class ProductForm(ModelForm): class Meta: model = Product exclude = ['order'] # This one is vaporised!!! description = forms.CharField(max_length=2,)

Why/where are field errors caught before form.is_valid is executed

2008-09-27 Thread Gerard Petersen
Hi All, I have a not to exciting app (modelwise) with forms all based on modelform. Im trying to figure out how to realize form field input validation. Went through piles of text. But I'm still missing the point (or rather place). This works for a date field in a defined modelform sub class: