diff --git a/rest_framework/templates/rest_framework/login_base.html b/rest_framework/templates/rest_framework/login_base.html index 7569c77ad..fb355d528 100644 --- a/rest_framework/templates/rest_framework/login_base.html +++ b/rest_framework/templates/rest_framework/login_base.html @@ -20,7 +20,7 @@
{% csrf_token %}
+ class="clearfix control-group {% if form.username.errors %}error{% endif %}">
{% if form.username.errors %} -

+

{{ form.username.errors|striptags }}

{% endif %}
+ class="clearfix control-group {% if form.password.errors %}error{% endif %}">
{% if form.password.errors %} -

+

{{ form.password.errors|striptags }}

{% endif %} @@ -51,7 +51,7 @@ {% if form.non_field_errors %} {% for error in form.non_field_errors %} -
{{ error }}
+
{{ error }}
{% endfor %} {% endif %}