Hi guys, my problem is simple. Where the right place for a custom error_css_class value is when using ModelForm?
I tried this:
class ToolForm(ModelForm):
error_css_class = 'wrong_list'
class Meta:
model = Tool
widgets = {
'name' : TextInput(attrs={'class': 'small_input corners'}),
'description' : Textarea(attrs={'cols': 20, 'rows': 5, 'class': 'text corners'}),
'stocks' : TextInput(attrs={'class': 'small_input corners'}),
'state' : Textarea(attrs={'cols': 25, 'rows': 6, 'class': 'text corners'}),
}
Also, I tried as a class Meta value. Doesn't work either.
By now I just changed my css to 'errorlist' (u know, the default one), buuut this kind of doubts make me unhappy :P.
Any help is appreciated.