Re: Error: 'PersonForm' object is not callable

2009-01-23 Thread waltbrad
On Jan 23, 7:19 am, bruno desthuilliers wrote: > On 23 jan, 06:29, waltbrad wrote: > > > Hi folks. PersonForm is a modelform.  I'm trying to validate data by > > calling an instance of PersonForm.  (This is from Sam's 24 hour, and > > I've

Re: Error: 'PersonForm' object is not callable

2009-01-23 Thread bruno desthuilliers
On 23 jan, 06:29, waltbrad wrote: > Hi folks. PersonForm is a modelform.  I'm trying to validate data by > calling an instance of PersonForm.  (This is from Sam's 24 hour, and > I've modified the example to accommodate the 1.0 changes.)  So, NB : Alex already gave you the

Re: Error: 'PersonForm' object is not callable

2009-01-22 Thread waltbrad
On Jan 23, 1:47 am, Alex Koshelev wrote: > You don't need to "call" form second time: > >         pForm = PersonForm(request.POST.copy(), instance=p) > > And pForm is the ready to use instance of form. > Thanks for that. Would you know off hand where in the documentation I

Re: Error: 'PersonForm' object is not callable

2009-01-22 Thread Alex Koshelev
You don't need to "call" form second time: pForm = PersonForm(request.POST.copy(), instance=p) And pForm is the ready to use instance of form. On Fri, Jan 23, 2009 at 8:29 AM, waltbrad wrote: > > Hi folks. PersonForm is a modelform. I'm trying to validate data

Error: 'PersonForm' object is not callable

2009-01-22 Thread waltbrad
Hi folks. PersonForm is a modelform. I'm trying to validate data by calling an instance of PersonForm. (This is from Sam's 24 hour, and I've modified the example to accommodate the 1.0 changes.) So, if request.method == 'POST': if request.POST['submit'] == 'update': message =