﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9803	AuthenticationForm not showing errors.	anonymous	nobody	"The view:

{{{
def userlogin(request):
	if request.method == ""POST"":
		form = forms.AuthenticationForm(request.POST)
		if form.is_valid():
			return HttpResponseRedirect(request.GET['next'])
	else:
		form = forms.AuthenticationForm()
	return render_to_response(""login.html"",
	{
		""form"":		form,
		""style"":	request.GET.get(""style""),
		""title"":	""login"",
		""path"":		request.path
	})
}}}

The template:
{{{
{% extends ""template.html"" %}

{% block content %}
					<h3>login...</h3>
					<h4>browse anonymously otherwise.</h4>
					<hr />
					{{ form.errors }}
					<form method=""POST"" action=""."">
						<dl>
							<dt>{{ form.username.label_tag }}</dt>
							<dd>{{ form.username }}</dd>
							<dt>{{ form.password.label_tag }}</dt>
							<dd>{{ form.password }}</dd>
						</dl>
						<input type=""submit"" value=""login"" />
						<input type=""hidden"" name=""next"" value=""{{ next }}"" />
					</form>
{% endblock %}
}}}"		closed	Uncategorized	1.0		invalid			Unreviewed	0	0	0	0	0	0
