Ticket #289: precise-errors.2.diff

File precise-errors.2.diff, 964 bytes (added by Manuzhai, 19 years ago)

The first patch had some unrelated diffing going on.

  • main.py

     
    588588    t.append('{% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}')
    589589    if opts.admin.save_on_top:
    590590        t.extend(_get_submit_row_template(opts, app_label, add, change, show_delete, ordered_objects))
    591     t.append('{% if form.error_dict %}<p class="errornote">Please correct the error{{ form.error_dict.items|pluralize }} below.</p>{% endif %}\n')
     591    t.append('{% if form.error_dict %}<p class="errornote">Please correct the error{{ form.error_dict.items|pluralize }} below (in: {% for error in form.error_dict.keys %}{{ error }}{% if forloop.last %}{% else %}, {% endif %}{% endfor %}).</p>{% endif %}\n')
    592592    for fieldset_name, options in admin_field_objs:
    593593        t.append('<fieldset class="module aligned %s">\n\n' % options.get('classes', ''))
    594594        if fieldset_name:
Back to Top