{% extends "admin/base_site.html" %} {% load i18n %}{% load url from future %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Errors in Forms{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %}
Within Django there are basically two elements delivering error-messages: A p.errornote and a ul.errorlist.
Errornotes and -lists are outside Grappellis namespace because they come from the depth of Django.
Errornote
{% filter force_escape %}
Errornote
- Errorlist
{% endfilter %}
A field-error requires to add .grp-errors to the element wrapping the concerned label and form field.
Below the errorous form field there's a ul.errorlist with li displaying the error-messages.
{% filter force_escape %}
{% endfilter %}
The p.errornote is currently used before the very first group or module, e.g. with the change form.
Errornote
{% filter force_escape %}
Errornote
{% endfilter %}