form = PostForm()
form.hometest.choices = [(h.key.id(), h.homename) for h in Home.query()]
if form.validate_on_submit():
    pass
I'm having problems with wtforms selectfields when i use a POST with Flask