Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Web-Development
/ taskDelete
Function
taskDelete
Django_React_Todo/api/views.py:52–55 ·
view source on GitHub ↗
(request, pk)
Source
from the content-addressed store, hash-verified
50
# Delete
51
@api_view([
'DELETE'
])
52
def
taskDelete(request, pk):
53
task = Task.objects.get(id=pk)
54
task.delete()
55
return
Response(
"Item successfully deleted"
)
Callers
nothing calls this directly
Calls
2
get
Method · 0.80
delete
Method · 0.80
Tested by
no test coverage detected