DELETE request with several keys

Report a typo

The service we're creating is used for TODO lists.

The name of a task is passed in the query as a parameter todo. Another key passed in the body — important. The value can be true or false. Implement the delete method for removing unimportant tasks.

The response should be a redirection to the / page.

Write a program in Python 3
from django.shortcuts import redirect
from django.views import View


class TodoView(View):
all_todos = []

def delete(self, request, todo, important, *args, **kwargs):
...
___

Create a free account to access the full topic