Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Doug Van Horn
On Jul 5, 10:13 am, Tim Chase <[EMAIL PROTECTED]> wrote: > ... > To prevent this, you need to uniquely identify the page from > which it was submitted (a hash of the IP address, timestamp the > form was generated, user info, whatever) ... You might want to consider a uuid: import uuid

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
I'll have to check with my QA person to see exactly what they are doing. Perhaps they didn't tell me everything and they are hitting the back button... then going forward again... I've only gotten this to happen once, and had a bug on that page where I was saving twice..heh :) On Jul 5, 11:13

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Tim Chase
> I am using HttpResponseRedirect... it still seems to allow a > duplicate post though if refresh is hit on the page it's been > redirected to. Is this happening when a user clicks the Submit button twice before the redirect comes in (thus Django processes two requests from the same

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
I am using HttpResponseRedirect... it still seems to allow a duplicate post though if refresh is hit on the page it's been redirected to. On Jul 5, 10:34 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > In the cases where an existing

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread Jeremy Dunck
On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In the cases where an existing record is being edited, this doesn't > really matter, but when a user adds a new record, and I redirect him > to the page to view all of the objects in that table, if he then hits > refresh, it adds the

Re: Stopping second form post if refresh is hit?

2007-07-05 Thread KpoH
Use HttpResponseRedirect from django.http [EMAIL PROTECTED] пишет: > On most of my form posts, I redirect to another page once I save > whatever data has been posted on the form. ( I am not using new > forms, and in some cases I'm even using old fashioned hand rolled > forms to post from a

Stopping second form post if refresh is hit?

2007-07-05 Thread [EMAIL PROTECTED]
On most of my form posts, I redirect to another page once I save whatever data has been posted on the form. ( I am not using new forms, and in some cases I'm even using old fashioned hand rolled forms to post from a view. ) In the cases where an existing record is being edited, this doesn't