2👍
✅
There is a typo in code but it doesn’t make a TypeError
… You have created a set instead of a dictionary to pass to the template. Django doesn’t complain since it is an iterable and there is no type checking.
>>> {1, 2}
set([1, 2])
>>> {1: 2}
{1: 2}
You just have to replace the wrong line by:
context = Context({'objects': objects})
Source:stackexchange.com