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, you can add a "unique" field in your models to achieve this.
On Sat, Sep 29, 2012 at 5:43 PM, Satinderpal Singh <satinder.goraya91@gmail.com> wrote:
On Sat, Sep 29, 2012 at 5:22 PM, Timster <timshaffer00@gmail.com> wrote:Thanks Timster, it works!
> 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 post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Thanks & Regards
----------------------------
Amyth [Admin - Techstricks]
Email - aroras.official@gmail.com, admin@techstricks.com
Twitter - @mytharora
http://techstricks.com/
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment