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 modified the example to accommodate the 1.0 changes.)
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 practical solution, but
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
could find that? I l
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 by
> calling an instanc
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 = 'U
5 matches
Mail list logo