2👍
✅
You have listed the superclasses the wrong way round; some of the methods in ListView are more specific than the ones in TemplateView, but because the latter is listed first the methods will be found there instead.
However there doesn’t seem to be any need to inherit from TemplateView at all. ListView already does, and allows you to set a template_name anyway. Just drop the TemplateView from the inheritance.
Source:stackexchange.com