I have array, lets say it:
str_types = ("open", "closed", "extend", "cancel")
Also I've some table. Which have int field named "type", contains number from 1 - 4. If field value is 1, It must print "open", if value equals 2, I must print "closed" etc.
So in template:
{% for a in ticket %}
<div>{{ str_types.a.types }}</div>
{% endfor %}
Result is blank. How to access that str_types array's index?