saziosu / book-swap

Code Institute: Project 4. Grade: Distinction
https://book-swap-13f900a2d9c7.herokuapp.com/
0 stars 1 forks source link

USER STORY: Delete Book Posts #13

Closed saziosu closed 11 months ago

saziosu commented 11 months ago

Epic: #5

As a User, I can delete my book post so that I can manage my posts

Acceptance Criteria:

Tasks:

saziosu commented 11 months ago

Added the BookDeleteView to views.py this includes the LoginRequiredMixin and UserPassesTestMixin to ensure this can only be completed by the owner of the book post.

saziosu commented 11 months ago

Added book_delete.html and wired up the url. This is successfully deleting the appropriate post. Next steps will be adding the cancel deletion button and adding the delete buttons to the posts.

saziosu commented 11 months ago

Added the cancel deletion button to the deletion page. This brings the user back via the window history if they went to cancel the wrong post.

saziosu commented 11 months ago

Added the deletion buttons to index.html and book_detail.html to allow the user on the front end to delete the posts. This is only seen by users that made the individual post.