{% extends 'diary/base.html' %} {% block diary_head_extra %} {{ form.media }} {% endblock diary_head_extra %} {% block diary_content %} {# parameterise the button so we can override the name and type#} {% with button_type="submit" button_label="Save" %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}