{% load i18n %} {% spaceless %} {% comment %} In some situations we don't want spaces before or after each date element, as it is easier with CSS to add margin between tags than removing space characters, we use spaceless to remove all spaces between tags. {% endcomment %} {% with day_format=day_format|default:"d" month_format=month_format|default:"F" local_start_date=start_date local_end_date=end_date %} {% if local_start_date or local_end_date %}