Re: clean_ question

2008-06-10 Thread Juanjo Conti
When you need to use data from more than one form field, THAT validations should be done in a method called 'clean', becasue when clean is execute you are sure that all the fields were c cleaned. -- Juanjo Conti & Ceci --~--~-~--~~~---~--~~ You received this mess

Re: clean_ question

2008-06-10 Thread Karen Tracey
On Tue, Jun 10, 2008 at 1:13 PM, Adi <[EMAIL PROTECTED]> wrote: > > I have a form with two fields > > class TestForm (forms.Form): >EVENT_TYPE_CHOICES = ( ( "", "---Please Select---"), > ("01","Individual"), ("02","Team") ) >eventtype = > forms.CharField(max_length=2,choices=EVENT_

clean_ question

2008-06-10 Thread Adi
I have a form with two fields class TestForm (forms.Form): EVENT_TYPE_CHOICES = ( ( "", "---Please Select---"), ("01","Individual"), ("02","Team") ) eventtype = forms.CharField(max_length=2,choices=EVENT_TYPE_CHOICES) participants = forms.IntegerField(required=False, initi