{% load i18n %} {% if request.is_ajax %} {{ form.media }} {% block headajaxjs %}{% endblock %} {% else %}