diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:29:34 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-04-07 19:29:34 +0000 |
| commit | a340c7f0e2995c7868ac673eddd23022ab1549ba (patch) | |
| tree | a70e69d07cf0280a5065b104c8029d2727e5a849 /docs | |
| parent | 4c7b2b8baf645d2e8f48d1162508c1025292e1cb (diff) | |
[1.0.X] Fixed #9268: pass the "next" param through in the comment preview/post view. Also updated the docs to make this a bit clearer. Backport of r10418 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10419 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/comments/index.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/ref/contrib/comments/index.txt b/docs/ref/contrib/comments/index.txt index 3e12ced3a7..ad651a44b9 100644 --- a/docs/ref/contrib/comments/index.txt +++ b/docs/ref/contrib/comments/index.txt @@ -42,7 +42,7 @@ To get started using the ``comments`` app, follow these steps: #. Use the `comment template tags`_ below to embed comments in your templates. -You might also want to examine the :ref:`ref-contrib-comments-settings` +You might also want to examine :ref:`ref-contrib-comments-settings`. Comment template tags ===================== @@ -166,7 +166,7 @@ A complete form might look like:: </form> Be sure to read the `notes on the comment form`_, below, for some special -considerations you'll need to make if you're using this aproach. +considerations you'll need to make if you're using this approach. .. templatetag:: comment_form_target @@ -180,6 +180,16 @@ 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 ------------------------- |
