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 <brownellty...@gmail.com> wrote:
> http://groups.google.com/group/django-users/browse_thread/thread/ed74391560c762bb
>
> On Fri, Jan 30, 2009 at 5:03 PM, Ty <brownellty...@gmail.com> 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 variable.
>>
>> I have a checkbox in my comment form that says "remember my
>> information". After a comment is submitted and if the checkbox is
>> checked I'm saving the persons name, email address, and website in
>> session variables.
>>
>> Now I'm just trying to figure out how to get these session variables
>> to load as the default values in the form fields, if they exist.
>>
>> Can anyone point me in the right direction?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to