Re: Problem with ModelForm

2010-09-04 Thread Kenneth Gonsalves
On Sat, 2010-09-04 at 09:19 -0700, Jagdeep Singh Malhi wrote: > form = Input(request.POST) form = InputForm(request.POST) -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Problem with ModelForm

2010-09-04 Thread Jagdeep Singh Malhi
> Fairly obviously, you've instantiated the model - Input() - rather > than the form - InputForm() - in both branches of the if statement of > your view. it works. Thanks Sir. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Problem with ModelForm

2010-09-04 Thread Daniel Roseman
On Sep 4, 5:19 pm, Jagdeep Singh Malhi wrote: > I try to Create forms from models > I am facing error message with 'is_valid()' > > error is  : > { > AttributeError at /add_db/ > > 'Input' object has no attribute 'is_valid' > > Request Method:         POST > Request URL:    http://localhost/django