{% load i18n %} {% with newsletter.get_items_by_category as items %} {% regroup items by category as categories %} {% endwith %}