{% load i18n %} {% blocktrans %}все{% endblocktrans %} {% blocktrans %}очистить{% endblocktrans %} {% for month in months %} {% ifchanged month.first_month_day.year %}{% endifchanged %} {{ month.title }} {% if forloop.counter0|divisibleby:"3" %}{% endif %} {% if forloop.counter0|add:"1"|divisibleby:"3" %}{% endif %} {% endfor %}
{{ month.first_month_day.year }}
{% include 'admin/block_month.html' %}
{# очень важная фича: привести календарь в соответствие инпуту после перезагрузки #}