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,)
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:
2 matches
Mail list logo