Django

Code

Show
Ignore:
Timestamp:
07/10/08 15:24:46 (6 months ago)
Author:
brosner
Message:

newforms-admin: Fixed #5628 -- When inlines have validation errors an error message is now displayed at the top of the page. Thanks Petr Marhoun for the improved patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/admin/templates/admin/change_form.html

    r7638 r7878  
    3333{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 
    3434{% if save_on_top %}{% submit_row %}{% endif %} 
    35 {% if adminform.form.errors %} 
     35{% if errors %} 
    3636    <p class="errornote"> 
    37     {% blocktrans count adminform.form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 
     37    {% blocktrans count errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 
    3838    </p> 
    3939    <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>