I'm trying to use Flask-WTF for a new form that I'm adding to a Flask app that I recently inherited. I'm fairly new to the Flask ecosystem (completely new to WTForms), and I haven't done any web development in four years.
Example code in the Flask-WTF documentation renders a page on form validation failure, rather than redirecting (Post/Redirect/Get). At that point, a browser refresh would resubmit the previous POST. This isn't good, right? While most folks don't seem to give this scenario any attention, I do see a few people who feel like this is something to avoid (e.g. here and here).
So how would I avoid this issue while using Flask-WTF? If I redirect on validation failure, I think I lose the ability to show validation errors on each field. Or perhaps I shouldn't worry about this scenario?