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.goray...@gmail.com> wrote:

> On Sat, Sep 29, 2012 at 5:22 PM, Timster <timshaffe...@gmail.com> wrote:
> > After saving the form, instead of doing a render_to_response, you should
> > redirect the user to another page.
> Thanks Timster, it works!
>
> --
> Satinderpal Singh
> http://satindergoraya.blogspot.in/
> http://satindergoraya91.blogspot.in/
>
> --
> 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.
>
>


-- 
Thanks & Regards
----------------------------

Amyth [Admin - Techstricks]
Email - aroras.offic...@gmail.com, ad...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to