Re: Executing validation on entry to class-based views

2013-09-29 Thread Darren Spruell
Hm, yes! Thanks, had forgotten about dispatch(). On Thu, Sep 26, 2013 at 1:24 AM, Daniel Roseman wrote: > On Thursday, 26 September 2013 07:29:38 UTC+1, dspruell wrote: >> >> Greetings, >> >> I have an app with a CBV for the main functionality that I'd like to >> do some validation on config sett

Re: Executing validation on entry to class-based views

2013-09-26 Thread Daniel Roseman
On Thursday, 26 September 2013 07:29:38 UTC+1, dspruell wrote: > Greetings, > > I have an app with a CBV for the main functionality that I'd like to > do some validation on config settings (in settings.py) before carrying > out the view. > > My particular view in this case is a FormWizard, but

Executing validation on entry to class-based views

2013-09-25 Thread Darren Spruell
Greetings, I have an app with a CBV for the main functionality that I'd like to do some validation on config settings (in settings.py) before carrying out the view. My particular view in this case is a FormWizard, but I'd like to know general to any CBV; what is the correct pattern for doing this