If I am not mistaken, you're talking about passing states between the request that is returning the redirect after a POST and the new request that is rendering the GET.
If you really need to do that you can use sessions to store the data that you need and then just set the initial data for the form. AFAIK, Django doesn't do much to help you here. BR Chee Ming http://www.cheeming.com/ On Feb 14, 4:13 pm, Evgeny <eugen...@gmail.com> wrote: > I meant django form. > Sure, I know about initial values in the constructors of fields, so I > can set these values in "design-time" and get forms with some > defaults. > But what happens in my situation: > -user clicks on the submit button of a form and sends some data to > server > -server redirects to the same page using HttpResponseRedirect object. > The constructor of HttpResponseRedirect class has a single argument - > the url to the new (the same in this case) page. > - so the page gets rendered with the design-time (static) initial > values > I'm trying to modify somehow these initial values in runtime, so the > user would see the form with the values he entered on his last submit. > But in the same time I don't want to leave the form bound. > > On Feb 14, 3:26 am, Malcolm Tredinnick <malc...@pointy-stick.com> > wrote: > > > Do you mean a Django form or an HTML form? In the former case, have you > > read the documentation for forms? Setting initial data is explained in > > there (both fields and forms take an "initial" parameter in their > > constructors). It's also been discussed on this list many, many times. > > > Regards, > > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---