MCPcopy 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'])
52def 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

getMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected