Hi, all the forms are validated before passed to the done() method so that it can expect cleaned data to be present on all of them.
in every step, only the currently submitted form is validated, just in the last one, before done() is called, every single form is cleaned so that done() doesn't have to do this. Originally this wasn't there but I found out that every single subclass of Wizard I wrote had done() starting in the same way - cleaning all the forms so that I could access cleaned_data. does this answer your question? On Fri, Apr 4, 2008 at 1:06 PM, Greig Rapley <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using a FormWizard with two simple forms. The first form has some > complex validation to do on two of the fields, so I put that code in > clean(). That all works fine. > > After the second form has been submitted, it appears that the clean() > is called on the first form again. This happens before the done() > method on the Wizard itself. Obviously with an expensive (time) > validation I don't want to do it twice. Is there some way to do once > only validation on the first form in a FormWizard ? > > Thanks, > Greig > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---