Open zhannamatuzak opened 9 months ago
There was no fiels "approved" in the model.
experiences = lizard.experiences.filter(approved=True).order_by("-created_on")
So, deleted "approved=True".
The delete option should only be available to the user who shared the experience. Other users should not have the ability to delete someone else's shared experiences.
The user can see the delete below to each shared experience/comment the user has made on the lizard post. The delete option should be easily identifiable, such as an icon.
As a SITE USER, I can delete my shared experiences about my pet lizard (comments) on a lizard post so that I can customise or remove my thoughts on a post if required.
ECCEPTANCE CRITERIA:
The delete option should only be available to the user who shared the experience. Other users should not have the ability to delete someone else's shared experiences.
The user can see the delete below to each shared experience/comment the user has made on the lizard post. The delete option should be easily identifiable, such as an icon.
The user should be redirected to the Delete page and see the confirmation message and the button to go back.
When the user selects the delete option, he/she should be able to see a confirmation message to ensure the user intends to delete the shared experience.