Fixed #9268: pass the "next" param through in the comment preview/post view. Also updated the docs to make this a bit clearer.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-04-07 19:28:13 +00:00
parent 366710e636
commit f8adf99cdb
4 changed files with 11 additions and 0 deletions

View file

@ -180,6 +180,14 @@ you'll always want to use it like above::
<form action="{% comment_form_target %}" method="POST">
Redirecting after the comment post
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To specify the URL you want to redirect to after the comment has been posted,
you can include a hidden form input called ``next`` in your comment form. For example::
<input type="hidden" name="next" value="{% url my_comment_was_posted %}" />
.. _notes-on-the-comment-form:
Notes on the comment form