I am getting this error in one of my django views. What does it mean? How can I solve this? Below is the view where I am getting the error,
def duedate(request):
data = Task.objects.all()
total_count = data.count()
pending_count = 0
for dat in data:
if dat.done == False:
pending_count += 1
today = datetime.date.today()
context = {'data':data, 'today':today, 'count':total_count, 'pending':pending_count}
return render(request, 'todoapp/index.html', context)
Edit1: This is what I'm getting when I 'ipdb' the dictionary
36 import ipdb; ipdb.set_trace()
37 context = {'data':data, 'today':today, 'count':total_count, 'pending':pending_count}
---> 38 return render(request, 'todoapp/index.html', context)
ipdb> context
{'data': <QuerySet [<Task: Finish todo list>, <Task: create views to display due date>]>, 'today': datetime.date(2019, 3, 19), 'count': 2, 'pending': 2}