diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:28:13 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:28:13 +0000 |
| commit | f8adf99cdb449924b2ed2ddac33744da7eeb1efc (patch) | |
| tree | ec90970c9412bdc052d36be4473ac89e0c9b530f /docs/ref/contrib | |
| parent | 366710e6368fbb7530ccfae92a2b6faa40ea4bc1 (diff) | |
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
Diffstat (limited to 'docs/ref/contrib')
| -rw-r--r-- | docs/ref/contrib/comments/index.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/contrib/comments/index.txt b/docs/ref/contrib/comments/index.txt index f3ccf54ebe..f6e1553bac 100644 --- a/docs/ref/contrib/comments/index.txt +++ b/docs/ref/contrib/comments/index.txt @@ -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 |
