Im trying to add into the dynamic choices of WTForms Flask SelectField 1 static option. At this moment I have a category_list, which one works by query in to the db, and include all avaliable choices for each user. I want to add in this selectfield 1 more active option with some action, like a button in bootstrap dropdown with 'href'. Here is SelectField code in form:
class TransactionForm(FlaskForm):
category = SelectField(coerce=int,
validators=[InputRequired()],
render_kw={"class": "btn btn-primary dropdown-toggle",
"data-toggle": "dropdown",
"aria-haspopup": "true",
"aria-expanded": "false"
}
)
Would you be so kind to help me find a way to do this, or explain me, why it is impossible?