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 ):
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
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 =
3 matches
Mail list logo