Calling functions from the template is not possible in Django normally, however this call templatetag
provides this capability for any method you would like to evaluate. It is available in the dj-angles
library and can be installed via pip install dj-angles
.
{% call obj.get_something(...) as something %}
{{ something }}