Re: Inspecting form errors in a view

2013-03-22 Thread Rainy
On Thursday, March 21, 2013 9:47:03 PM UTC-4, Aubrey Stark-Toller wrote: > > On Thu, Mar 21, 2013 at 03:40:39PM -0700, Rainy wrote: > > I believe you can just set self.my_flag = foo in clean method and then > > check for > > > Cheers for the reply. > > I suspect my original mail could have cl

Re: Inspecting form errors in a view

2013-03-21 Thread Aubrey Stark-Toller
On Thu, Mar 21, 2013 at 03:40:39PM -0700, Rainy wrote: > I believe you can just set self.my_flag = foo in clean method and then > check for Cheers for the reply. I suspect my original mail could have clearer. Just setting attributes when checks fail seems to me to be the best way to do this, bu

Re: Inspecting form errors in a view

2013-03-21 Thread Rainy
On Thursday, March 21, 2013 5:07:36 PM UTC-4, aub...@deepearth.co.uk wrote: > > Hello, > > I have form class that has a relatively lengthy clean method which does > field > validation (as the validity of fields depends on the values of fields) as > well > setting error messages on the form i

Inspecting form errors in a view

2013-03-21 Thread aubrey
Hello, I have form class that has a relatively lengthy clean method which does field validation (as the validity of fields depends on the values of fields) as well setting error messages on the form itself. I also intend to be part of an app used in multiple views in a few projects. I want to run