Re: Setting Bound Fields Programmatically

2009-01-08 Thread Keyton Weissinger
WAIT! Crap. If all else fails, RTFM. I'm sorry everyone. I just re-read the docs at http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ on commit=False. I get it now. Thank you all! K On Jan 8, 7:47 am, Keyton Weissinger wrote: > Thank you both very much for taking the time to respon

Re: Setting Bound Fields Programmatically

2009-01-08 Thread Keyton Weissinger
Thank you both very much for taking the time to respond... I got it to work using the following: if request.method == 'POST': my_data = {'type':user_type, 'school':current_school.id, 'title': request.POST['title'], 'first_name'

Re: Setting Bound Fields Programmatically

2009-01-07 Thread Malcolm Tredinnick
On Wed, 2009-01-07 at 21:28 -0800, Keyton Weissinger wrote: > I have a form with the following fields (all required): > - first_name > - last_name > - site_id > > I'd like to use a template to display only the FIRST two items to the > user for him to fill out: > > > {{ form.first_name }} > {{

Re: Setting Bound Fields Programmatically

2009-01-07 Thread Karen Tracey
On Thu, Jan 8, 2009 at 12:28 AM, Keyton Weissinger wrote: > > I have a form with the following fields (all required): > - first_name > - last_name > - site_id > > I'd like to use a template to display only the FIRST two items to the > user for him to fill out: > > > {{ form.first_name }} > {{ f

Setting Bound Fields Programmatically

2009-01-07 Thread Keyton Weissinger
I have a form with the following fields (all required): - first_name - last_name - site_id I'd like to use a template to display only the FIRST two items to the user for him to fill out: {{ form.first_name }} {{ form.last_name }} Then when it gets posted back to me I'd like to set the site