Skip to content

Commit 16c714a

Browse files
authored
Override "submit_buttons_top" section to prevent KeyError in context (#710)
This block is rendered conditionally. Will not appear if save_on_top = False
1 parent 88a2488 commit 16c714a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

simple_history/templates/simple_history/object_history_form.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
</div>
1414
{% endblock %}
1515

16+
{% block submit_buttons_top %}
17+
{% include "simple_history/submit_line.html" %}
18+
{% endblock %}
19+
1620
{% block submit_buttons_bottom %}
1721
{% include "simple_history/submit_line.html" %}
1822
{% endblock %}

0 commit comments

Comments
 (0)