class Product(Form):
    product = TextField('name')
category = SelectField('category', choices=[(1, 'one'), (2, 'two')])
form1 = Product(category=2)
Product2 = type('Product2', (Product,), {'category': SelectField('category',
    default=2, choices=[(1, 'one'), (2, 'two')])})
form2 = Product2()
Setting a default value in the selectfield, using wtforms and flask