Jorge Godoy wrote:
>
> I said what I think before: this will make you limited to only two cases:
> normal and required classes. What about something else, like a discount
> field, or a confirmation field? What about an "attention" message where you
> want to make it stand more, but not in, e.g., red as for required stuff?
>
That's a special case and since you can need very different things I
don't think a css_classes attribute is really needed, you can already
pass classes to the widget constructor by using the attrs dictionary,
it's there for this reason.
My svn checkout it's broken ATM, anyway I think you can do something
like this:
confirmation = YourField(..., attrs={'class': 'confirmation_field
attention'})
If you need to keep the existing class (as you can do using
css_classes) just add it to the class key.
Ciao
Michele
PS
I'm on dialup and ATM I can't fix my broken (dunno why) svn checkout so
I may be wrong since I can't test things, in that case excuse me.