Django

Code

Ticket #6809: change_form-non_field_errors.diff

File change_form-non_field_errors.diff, 0.6 kB (added by peschler, 8 months ago)

Patch for displaying non_field_errors.

  • django/contrib/admin/templates/admin/change_form.html

    old new  
    3838    <p class="errornote"> 
    3939    {% blocktrans count adminform.form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 
    4040    </p> 
     41    <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul> 
    4142{% endif %} 
    4243 
    4344{% for fieldset in adminform %}