Tech Insights· docs.djangoproject.com
Django templates has a built-in complex tag that regroups a list of alike objects by a common attribute called regroup. You can use the {% regroup %} tag to group the list of cities by country:
Shared by
- Django
- Templates



