Re: Form validated before submitted

2009-01-27 Thread Steve Holden
JonUK wrote: > Solved - problem was caused by these lines > > def __init__(self, *args, **kwargs ): >super( ContactForm, self ).__init__( args, kwargs ) > > changing to explicit parameter names fixed it. > The correct generic form would have been def __init__(self, *args, **kwargs ):

Re: Form validated before submitted

2009-01-27 Thread JonUK
Solved - problem was caused by these lines def __init__(self, *args, **kwargs ): super( ContactForm, self ).__init__( args, kwargs ) changing to explicit parameter names fixed it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Form validated before submitted

2009-01-27 Thread JonUK
I have a ModelForm and a view, but the form's validation messages are always rendered on first viewing - any idea why? # ModelForm class ContactForm( ModelForm ): first_name = CharField( 'Firstname' ) last_name = CharField( 'Lastname' ) company = CharField( 'Company' ) tel =