{% load i18n apphooks_config_tags %} {% regroup dates by date.year as years %} {% with current_year=year current_month=month %}