{% load apphooks_config_tags %} {% spaceless %} {% for day, events, css_classes in calendar_tag.calendar %} {% if forloop.counter0 != 0 and forloop.counter0|divisibleby:'7' %} {% endif %} {% endfor %}
MTWTF S S
{% if events %} {{ day|date:'d' }} {% else %} {{ day|date:'d' }} {% endif %}
{% endspaceless %}