Re: prevent from backward in form

2014-05-31 Thread Ali hallaji
Hi Russ, thank you so much for reply. But I tested ago the form with HTTPResponseRedirect and this don't work for me. I decide to save csrf token in my models and check it in view and this solution work for me. Best Regards, Hallaji On Sun, Jun 1, 2014 at 5:24 AM, Russell Keith-Magee wrote: >

Re: prevent from backward in form

2014-05-31 Thread Russell Keith-Magee
Hi Ali, If you follow the pattern laid out in Django's documentation, you'll avoid the problem: https://docs.djangoproject.com/en/dev/topics/forms/#using-a-form-in-a-view The key part is that on success, the form processing issues a HTTPResponseRedirect. This prevents the back button from repopu

prevent from backward in form

2014-05-31 Thread Ali hallaji
I submit the form and when I resend or backward the my webpage, my form dose appear again and save data in duplicate. please help me for solving this issue. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop