I have a for loop in a Django template:

```
{% for i in no_of_lift_series_range %}
    {{ workout.lifts.series.i.activity_name }}
{% endfor %}

```

where this fails to output anything. The problem lies in the use of `i`. I know this, because this:

```
{% for i in no_of_lift_series_range %}
    {{ workout.lifts.series.0.activity_name }}
{% endfor %}

```

outputs what it is supposed to output. Why can't I use `i` in the way I want and how do I make this work?