You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like Django's templating language has a forloop.parentloop variable attached to it, that can be used to refer to the outer loop directly. I'm leaving this issue open for people to leave their comments if they'd be interested in something like that.
I can't seem to find a way to access the forloop object for the outermost for loop in a template that looks like this.
forloop.counter
returns the innermost for loop's counter in the above exampleThe text was updated successfully, but these errors were encountered: