On Sun, Sep 8, 2013 at 2:19 PM, Laurent Meunier <[email protected]> wrote:
> Harjot is right, you are not doing a redirect after you create your object.
> Since the browser is not redirected, if you refresh the page the browser
> send an other POST (and a new object is created).
> If you redirect after a POST, the browser is now in a GET page, and when you
> refresh the browser send a GET instead of a POST.


So where should I change the code??


-- 
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
Daily Dairy: http://harjotmann.wordpress.com/daily-diary/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to