Hi,
this is how we do it, when you initial the Form object, you can add
"inital" values". ignore the request.session in there that isjust
where we stored values if the user goes back and forth in multiple
forms.
the 1st '' part is the form element.
form = BookingFormOne(initial={
Matias Surdi escribió:
> Hi.
>
> How can I pass an initial value to a newforms form's widget?
>
> I know that there is an "initial" parameter for widgets, but what if I
> don't know that parameter's value beforehand?
>
> What I'm trying to do is to be able to make a request to an url and
> de
Hi.
How can I pass an initial value to a newforms form's widget?
I know that there is an "initial" parameter for widgets, but what if I
don't know that parameter's value beforehand?
What I'm trying to do is to be able to make a request to an url and
depending on some url parameters generate a
3 matches
Mail list logo