Re: Duplicate entry in database on refreshing the submitted form

2012-09-29 Thread Amyth Arora
As Tim said use "redirect" instead of "render". Alternatively on form submit you can also have some kind of validation for ex: Query for one reference_no can take place only once in 24 hours and if it is being submitted twice return an error message. This way it will be more user friendly. Also, yo

Re: Duplicate entry in database on refreshing the submitted form

2012-09-29 Thread Timster
After saving the form, instead of doing a render_to_response, you should redirect the user to another page. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-