Deleting a review
Having implemented the update of a review, let's now implement deleting a review:
- Create a new path to delete a review in
/movie/urls.py
(you should be familiar with this by now):… urlpatterns = [ path('<int:movie_id>', views.detail, name='detail'), path('<int:movie_id>/create', views.createreview, name='createreview'), path('review/<int:review_id>', views.updatereview, name='updatereview'), path('review/<int:review_id>/delete', views.deletereview, name='deletereview'), ]
- In
/movie...