There is an edit button on the back of the movie card, you should be able to click on it and change your rating and review.

e.g.


1. Use what you have learnt about WTForms to create the RateMovieForm. Use this to create a Quick Form to be rendered in edit.html.

NOTE: You don't need to change the code in edit.html, it already has everything you need to render your Quick Form. This is so that students don't just create a simple HTML form.

If you've forgotten how to work with WTForms and Bootstrap-Flask, you can go back a few lessons and review the content there or just use the documentation:

https://bootstrap-flask.readthedocs.io/en/stable/macros/#render-form

https://wtforms.readthedocs.io/en/2.3.x/



2. Once the form is submitted and validated, add the updates to the corresponding movie entry in the database. Here's more documentation on SQLAchemy:

https://flask-sqlalchemy.palletsprojects.com/en/3.1.x/queries/#queries-for-views


SOLUTION