Re: Change AuthenticationForm error message

2009-06-15 Thread Vitaly Babiy
Yeah I think that is what I am going to do. Thanks Vitaly Babiy On Mon, Jun 15, 2009 at 4:58 PM, TiNo wrote: > On Sun, Jun 14, 2009 at 14:45, Vitaly Babiy wrote: > >> Hey Everyone, >> I need to change the inactive account error message on the >> AuthenticationForm, one thing I have is to repl

Re: Change AuthenticationForm error message

2009-06-15 Thread TiNo
On Sun, Jun 14, 2009 at 14:45, Vitaly Babiy wrote: > Hey Everyone, > I need to change the inactive account error message on the > AuthenticationForm, one thing I have is to replace the clean method on the > form with my own custom clean method the problem with this is django test > fail when I do

Re: Change AuthenticationForm error message

2009-06-15 Thread Vitaly Babiy
That seem likes to much overhead to make every request to go through. Vitaly Babiy On Mon, Jun 15, 2009 at 1:31 AM, Rama Vadakattu wrote: > > one simple idea ( it may or may not be feasible ) that you can use is > 1) write down a middleware > 2) examine the context which has a form and with the

Re: Change AuthenticationForm error message

2009-06-14 Thread Rama Vadakattu
one simple idea ( it may or may not be feasible ) that you can use is 1) write down a middleware 2) examine the context which has a form and with the above error message and replace it with your new error message On Jun 14, 5:45 pm, Vitaly Babiy wrote: > Hey Everyone, > I need to change th

Change AuthenticationForm error message

2009-06-14 Thread Vitaly Babiy
Hey Everyone, I need to change the inactive account error message on the AuthenticationForm, one thing I have is to replace the clean method on the form with my own custom clean method the problem with this is django test fail when I do this. I was wondering was is the best practice when it comes t