From 2dd330bcaa1a749b410125cc1152f58fb5ec4313 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 13 May 2015 09:46:11 +0200 Subject: Imports: fix unique for target value - better error msg for generic formset - fix type import for ishtar_common --- ishtar_common/templates/blocks/inline_formset.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/inline_formset.html b/ishtar_common/templates/blocks/inline_formset.html index c33da051e..3affb7bf3 100644 --- a/ishtar_common/templates/blocks/inline_formset.html +++ b/ishtar_common/templates/blocks/inline_formset.html @@ -8,8 +8,9 @@ {% endif %}{% for frm in formset%} {% if forloop.first and not skip %}{%endif%} - {% if not skip or not forloop.first %}{% endif %}{% for field in frm.visible_fields %} - + {% if not skip or not forloop.first %} + {% if frm.errors %}{% endif %} + {% endif %}{% for field in frm.visible_fields %} {% if field.errors %}
{{ field.errors.as_ul }}
{% endif %} {{ field }} {# Include the hidden fields in the form #} -- cgit v1.2.3