hi all am trying do do this on the template {% some_list |forloop.counter %}and the return a value from the list i have this function that should do the trick but don’t know how to put it all together here is the function below
def return_item(a_list,a_int):
return a_list[a_int]
It’s very clear in the django template filter docs how to do this:
than: