is there a way i could send a form's (css) class from python? For example:
class Company(Form):
companyName = TextField('Company Name', [validators.Length(min=3, max = 60)])
This renders a simple text field, but i want that text field to have the css class of .companyName
, is that possible directly from python?
I know that i can put a id="companyName"
directly from python, but not class.
Help.
Update:
I tried class_="companyName"
and it did not work, i got:
__init__() got an unexpected keyword argument '_class'