Re: Session Variables as Default Form Values

2009-02-02 Thread Ty
Ah, DURR. I just had to put "initial=" before the dictionary. Now it all makes sense! On Feb 2, 9:48 pm, Ty wrote: > Yes, but that would bound the data to the form and the data would try > to be validated on page load. I'm looking to pass default values to an > unbound form. > > On Jan 30, 7:13 

Re: Session Variables as Default Form Values

2009-02-02 Thread Ty
Yes, but that would bound the data to the form and the data would try to be validated on page load. I'm looking to pass default values to an unbound form. On Jan 30, 7:13 pm, "Todd O'Bryan" wrote: > You can pass data to a form class as a dictionary, so just save a > dictionary of the values in

Re: Session Variables as Default Form Values

2009-01-30 Thread Todd O'Bryan
You can pass data to a form class as a dictionary, so just save a dictionary of the values in your session under some name that you'll know to use. On Fri, Jan 30, 2009 at 5:04 PM, Tyler Brownell wrote: > http://groups.google.com/group/django-users/browse_thread/thread/ed74391560c762bb > > On Fr

Re: Session Variables as Default Form Values

2009-01-30 Thread Tyler Brownell
http://groups.google.com/group/django-users/browse_thread/thread/ed74391560c762bb On Fri, Jan 30, 2009 at 5:03 PM, Ty wrote: > I've went through the documentation for "modelforms" and "forms" but I > couldn't figure our how someone would set the default value for a form > field to a session vari

Session Variables as Default Form Values

2009-01-30 Thread Ty
I've went through the documentation for "modelforms" and "forms" but I couldn't figure our how someone would set the default value for a form field to a session variable. I have a checkbox in my comment form that says "remember my information". After a comment is submitted and if the checkbox is