I'm passing to Django's template a function, which returns me some records. I want to call this function and iterate over it's result.
{% for item in my_func(10) %}
That doesn't work. I've tried to set fuction's return value to a variable and iterate over variable, but there seems to be no way to set variable in Django template.
Is there any normal way to do it?