title: How to call function that takes an argument in a Django template?
body: <p>I'm passing to Django's template a function, which returns some records. 
  I want to call this function and iterate over its result. </p>
  
  <pre><code>{% for item in my_func(10) %} 
  </code></pre>
  
  <p>That doesn't work. 
  I've tried to set the function's return value to a variable and iterate over the variable, but there seems to be no way to set a variable in a Django template. </p>
  
  <p>Is there any normal way to do it? </p>