aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
authorFrédéric Sureau <fred@milka.(none)>2011-08-05 16:42:43 +0200
committerFrédéric Sureau <fred@milka.(none)>2011-08-05 16:42:43 +0200
commit410c4596dfd5791435bfb8fd73a5fb5a48dd8b47 (patch)
treeb20f99e548df4aa8246c8ec4edfe3c55dd692713 /budget/templates
parent4e24edd5c9ca80eca7d97494f29b51c24f39ff29 (diff)
downloadihatemoney-mirror-410c4596dfd5791435bfb8fd73a5fb5a48dd8b47.zip
ihatemoney-mirror-410c4596dfd5791435bfb8fd73a5fb5a48dd8b47.tar.gz
ihatemoney-mirror-410c4596dfd5791435bfb8fd73a5fb5a48dd8b47.tar.bz2
Error display changed.
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/display_errors.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/budget/templates/display_errors.html b/budget/templates/display_errors.html
index 15039a2..bc65a3a 100644
--- a/budget/templates/display_errors.html
+++ b/budget/templates/display_errors.html
@@ -1,5 +1,5 @@
-{% for errors in form.errors.values() %}
- {% for error in errors %}
- <p class="error">{{error}}</p>
+{% for field_name, field_errors in form.errors.items() if field_errors %}
+ {% for error in field_errors %}
+ <p class="error">{{ form[field_name].label.text }}: {{ error }}</p>
{% endfor %}
{% endfor %}