Discovered that you access {{ forloop.parentloop.counter }} in Django templates. Really handy.