1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {% if form.errors %}
<!-- Error messaging -->
<div id="errors">
<div class="inner">
<p>There were some errors in the information you entered. Please correct the following:</p>
{{ form.non_field_errors }}
<ul>
{% for field in form %}
{% if field.errors %}<li>{{ field.label }}: {{ field.errors|striptags }}</li>{% endif %}
{% endfor %}
</ul>
</div>
</div>
<!-- /Error messaging -->
{% endif %}
|
More like this
- List all Form Errors by epicserve 4 years, 7 months ago
- Increase maximum number of changelist items for "Show all" link to appear by ramen 3 years, 6 months ago
- django image bundle exaple template by amitu 5 years, 11 months ago
- Pagination/Filtering Alphabetically by zain 4 years, 2 months ago
- Nice form errors by SmileyChris 3 years, 7 months ago
Comments