From 3cf5a06ea4ed115f34c89f94db6a5a101cd81250 Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Thu, 9 Oct 2014 15:45:39 -0300 Subject: [PATCH] Handling non fields form errors in login template --- src/accounts/templates/registration/login.html | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/src/accounts/templates/registration/login.html b/src/accounts/templates/registration/login.html index 16a694a..f6a8cca 100644 --- a/src/accounts/templates/registration/login.html +++ b/src/accounts/templates/registration/login.html @@ -9,8 +9,15 @@ {% trans "Please correct the errors below and try again" %} {% endif %} + + {% for error in form.non_field_errors %} +
+ {{ error }} +
+ {% endfor %} +
{% csrf_token %} -- libgit2 0.21.2