Re: new forms - problem populating with data from a table

2007-02-16 Thread Tipan
Thanks for this post it really helped and I've got it working nicely now. Like Honza, I wondered why you copied the post data- but I'm not sure I understood your explanation. Does it give you more flexibility to work with a copy? Rgds, Tim --~--~-~--~~~---~--~~

Re: new forms - problem populating with data from a table

2007-02-11 Thread Lawrence Oluyede
> is there any reason why you copy the data? the form doesn't need the > data to be mutable, so there is no need for this. None special reasons to be honest. > I prefer constructing a dict manually than to mess around with python > internals, but that is really just a matter of personal preferen

Re: new forms - problem populating with data from a table

2007-02-10 Thread Honza Král
On 2/10/07, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > > > I now want to take an existing user record and create an edit account > > form, where the data entered by the user in the registration form is > > represented and available to edit. Seemed simple when I set out to do > > it, but I can't

Re: new forms - problem populating with data from a table

2007-02-10 Thread Honza Král
On 2/10/07, daev <[EMAIL PROTECTED]> wrote: > > On Feb 9, 10:12 pm, "Tipan" <[EMAIL PROTECTED]> wrote: > > > else: > > form=UserAccountForm() > > return render_to_response('account.html',{'form':form}) > somthing like this: > form = UserAccountForm( u

Re: new forms - problem populating with data from a table

2007-02-10 Thread daev
On Feb 9, 10:12 pm, "Tipan" <[EMAIL PROTECTED]> wrote: > else: > form=UserAccountForm() > return render_to_response('account.html',{'form':form}) somthing like this: form = UserAccountForm( user.__dict__ ) --~--~-~--~~~

Re: new forms - problem populating with data from a table

2007-02-10 Thread Lawrence Oluyede
> I now want to take an existing user record and create an edit account > form, where the data entered by the user in the registration form is > represented and available to edit. Seemed simple when I set out to do > it, but I can't seem to populate the form. It's pretty easy. You provide a page

new forms - problem populating with data from a table

2007-02-09 Thread Tipan
I'm new to Django and a relatively inexperienced programmer. I've started working with the new forms and have been able to take user input, validate it and write it to the table. Really slick and with minimal code. Great. I now want to take an existing user record and create an edit account form,