In a nutshell, I am making a Flask-wtf application in which I have a select field as:
someVar=SelectField("someVar",choices=result)
where result
is a list of data fetched from the DB.
Now the problem is on front end result showing values like ('abcxyz',) instead of just "abcxyz" whereas the DB query is also producing the value as simply "abcxyz". Also I want the dropdown as blank on page load.
I am showing this select field value on html as :
{{ form.someVar.label }}{{ form.someVar}}