{% extends request.is_ajax|yesno:"aristotle_mdr/base_ajax.html,aristotle_mdr/base.html" %} {% load compile_static i18n %} {% block title %}{{ form_title}} for {{ item.name }}{% endblock %} {% block content %} {% block extra_head_scripts %} {% if request.is_ajax %} {{ form.media }} {{ formset.media }} {% endif %} {% endblock %} Add a code (adding a row does not save changes)
{% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} | {% for field in form.visible_fields %}{# Include the hidden fields in the form #} {{ field.errors.as_ul }} {{ field }} | {% endfor %}