I'm not sure what's happening there, but the hack of using a submit field for a button looks a bit dubious.
will just render
into the HTML, so maybe use Flask shell to investigate what's happening there.
From what I can tell, the Unbound form reference comes from the _form attribute not being instantiated. I'm guessing this is because each
form should only have one submit field?
Dynamic WTForms and multiple button/submitfields (all 5)