Re: Interesting result when displaying errors for contrib.auth.forms AuthenticationForm

2008-11-09 Thread Brandon Taylor
Ah, thanks Alex! On Nov 9, 4:17 pm, "Alex Koshelev" <[EMAIL PROTECTED]> wrote: > Oh, I see. There is `non_field_errors` form method. It only returns errors > that is not associated with concrete field. > > {{ authentication_form.non_field_errors }} > > `errors` just holds all form errors as a

Re: Interesting result when displaying errors for contrib.auth.forms AuthenticationForm

2008-11-09 Thread Alex Koshelev
Oh, I see. There is `non_field_errors` form method. It only returns errors that is not associated with concrete field. {{ authentication_form.non_field_errors }} `errors` just holds all form errors as a dict. On Mon, Nov 10, 2008 at 00:52, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Here you

Re: Interesting result when displaying errors for contrib.auth.forms AuthenticationForm

2008-11-09 Thread Brandon Taylor
Here you go: Login to your Account {{ authentication_form.username.label_tag }}

Re: Interesting result when displaying errors for contrib.auth.forms AuthenticationForm

2008-11-09 Thread Alex Koshelev
Please show complete template code On Sun, Nov 9, 2008 at 20:55, Brandon Taylor <[EMAIL PROTECTED]>wrote: > > Hi everyone, > > I'm leveraging auth and have a login form that uses contrib.auth.forms > AuthenticationForm. > > When displaying non-field-specific errors, I get interesting results: >

Interesting result when displaying errors for contrib.auth.forms AuthenticationForm

2008-11-09 Thread Brandon Taylor
Hi everyone, I'm leveraging auth and have a login form that uses contrib.auth.forms AuthenticationForm. When displaying non-field-specific errors, I get interesting results: #template.html # if form.errors __all__ Please enter a correct username and password. Note that both fields are