[Answered ]-Getting error on redirect django

2👍

In the else condition of the get method, you are trying to return an object instead of a response. You have to return a response like return render(request, template_name, {'box': box, 'drafts': box.drafts}) instead of return {'box': box, 'drafts': box.drafts} .

Leave a comment