carlwenrich wrote:
> I have a view A that passes values (via dictionary pairs) to template
> B, which has a form that posts values to a view C. I'd like to pass a
> value from view A to view C through template B without having it appear
> as a value in a visual element of the form.
There are a couple of options.
1. To do exactly what you ask use hidden input in the template to store
the value:
<input type="hidden" name="my_var" value="{{ my_var }}">
It will be passed to your view C when when the form will be submitted.
2. If what you really need is to store some value for a certain visitor
you can use sessions (http://www.djangoproject.com/documentation/sessions/)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---