Updating a review
To be able to update reviews, we need to follow these steps:
- Update the
movies.show
template. - Create the
movies
edit_review
template. - Define the
edit_review
function. - Configure the
edit
review
URL.
Updating movies.show template
In /movies/templates/movies/show.html
file, add the following bold text:
… {% for review in template_data.reviews %} <li class="list-group-item pb-3 pt-3"> <h5 class="card-title"> Review by {{ review.user.username }} </h5> ...