Commit 5c5aaa99 authored by Patrick Kimber's avatar Patrick Kimber

if 'form' does not have 'non_field_errors', then don't display them

parent b6dca424
<form action="." method="post" {% if multipart %}enctype="multipart/form-data"{% endif %} class="pure-form {% if aligned %}pure-form-aligned{% else %}pure-form-stacked{% endif %}">
{% csrf_token %}
{{ form.non_field_errors }}
{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
<fieldset>
{% if legend %}
<legend>{{ legend }}</legend>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment