I am trying to assemble a variable in Django template in that way:
obj.length.forloop.counter
where the foorloop.counter
should return the number.
for example obj.length.1
then obj.length.2
and so on...
I tried the add filter:
obj.length|add:forloop.counter
but that returned nothing at all.
Is there any way that I can assemble variable names like that in django templating language?