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 %}
- [Django]-Unique fields that allow nulls in Django
- [Django]-How can I allow django admin to set a field to NULL?
- [Django]-Django URLs TypeError: view must be a callable or a list/tuple in the case of include()
Source:stackexchange.com