acmpesuecc / acmpesuecc/Todo_List_In_Django
Incomplete delete function in views.py
Offen
BOUNTY: 25
bug
- Vorherrschende Sprache
- Python
- Sterne
- 1
- Forks
- 4
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
This function is used to delete a todo from the todolist.
Steps to complete this function:
1. Add id parameter, that is, a parameter in the function to get the id of the todo object to delete.
2. Accept request only if it is a post request.
3. Delete todo Object with given id from DB.
4. Redirect to the '/todo' page
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.