Re: Does anyone know how to prepopulate a form with model data

2009-04-28 Thread Milan Andric
On Apr 9, 1:02 am, Daniel Roseman wrote: > On Apr 9, 2:55 am, codecowboy wrote: > > > > > I want to create aformthat allows a user to edit his/her profile.  I > > don't want to bind myformto a model because theformwill involve > > two different models.  Does anyone have any ideas.  I've read c

Re: Does anyone know how to prepopulate a form with model data

2009-04-09 Thread Daniel Roseman
On Apr 9, 2:55 am, codecowboy wrote: > I want to create a form that allows a user to edit his/her profile.  I > don't want to bind my form to a model because the form will involve > two different models.  Does anyone have any ideas.  I've read chapter > 7 in the Django Book but it only to a simpl

Re: Does anyone know how to prepopulate a form with model data

2009-04-09 Thread Adi Sieker
On 09.04.2009, at 08:18, Briel wrote: > > Hi. > It seems like your error and your problem is not the same. The error > is complaining about the get_object_or_404, not the profile thing. So > changing that code won't actually do anything as it doesn't get that > far. > Well, maybe not. I had the

Re: Does anyone know how to prepopulate a form with model data

2009-04-08 Thread Briel
Hi. It seems like your error and your problem is not the same. The error is complaining about the get_object_or_404, not the profile thing. So changing that code won't actually do anything as it doesn't get that far. ~Jakob On Apr 9, 3:55 am, codecowboy wrote: > I want to create a form that all

Does anyone know how to prepopulate a form with model data

2009-04-08 Thread codecowboy
I want to create a form that allows a user to edit his/her profile. I don't want to bind my form to a model because the form will involve two different models. Does anyone have any ideas. I've read chapter 7 in the Django Book but it only to a simple example that does not help me. Here is what