[Django]-Loop backwards using django template

142👍

Directly from the page you linked:

You can loop over a list in reverse by using {% for obj in list reversed %}.

18👍

In case someone ends up here looking for jinja2 solution, like me:

{% for obj in list | reverse %}

Leave a comment