view.py
class test(ListView):
model = TestModel
template_name = 'test/test.html'
context_object_name = 'test'
def myfunc(self):
return 'test'
Как вывести в шаблон html функцию myfunc?
{{ myfunc }}
и {{ test.myfunc }}
не работает...