durusmail: quixote-users: Customizing a form's style
Customizing a form's style
2006-09-15
Customizing a form's style
Mike Orr
2006-09-15
I thought forms had an optional name that you could refer to in the
the stylesheet, but it turns out there is no such argument.  Did
something change or am I misremembering?

There is support for a "class" argument but this can only be passed as
**kw and not as a regular argument due to its conflict with a reserved
word.  Should there not be a "css_class" argument to be consistent
with quixote.html?

I ended up doing this:

    form = Form()
    form.attrs["class"] = "quixote MyForm"

--
Mike Orr 
reply