Skip to content

Commit bb7cac0

Browse files
committed
Show non field errors in base form template
1 parent fbef982 commit bb7cac0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/base/form_contents.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
Please correct the errors below, and re-submit the form.
66
</div>
77
{%endif%}
8+
{%for e in form.non_field_errors %}
9+
<div class="alert alert-danger">{{e}}</div>
10+
{%endfor%}
811
{%if form.fieldsets%}
912
{%for fieldset in form.fieldsets%}
1013
<fieldset id="{{fieldset.id}}" class="form-group">

0 commit comments

Comments
 (0)