Re: Filling a form with database model content

2008-03-24 Thread davenaff
You need to send initial values to the form when you define the form in its view. For example, this call would intialize the form with your data: form = myform(initial={'company':myprofileinfo.company, 'gender':myprofileinfo.gender,}) where 'company' and 'gender' correspond to the names of your

Filling a form with database model content

2008-03-24 Thread truebosko
Hi there, I've been working on a rather large Django project and I've hit one roadblock. I've been using django-registration to handle my registration of users, but I also wanted to have more profile fields, so I extended the user model. Here is a paste of my forms.py for my BigfootProfile (This