From 7880d999005170745040d1725ab0d8899235a794 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 16 Jun 2011 16:42:54 +0000 Subject: [PATCH] [1.3.X] Fixed #16031 -- Corrected comments template examples. Thanks, teraom. Backport from trunk (r16412). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16421 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/comments/example.txt | 17 ++++++++++------- docs/ref/contrib/comments/index.txt | 19 ++++++++++++------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/docs/ref/contrib/comments/example.txt b/docs/ref/contrib/comments/example.txt index 921fe03ffae0b..253701b8da1f9 100644 --- a/docs/ref/contrib/comments/example.txt +++ b/docs/ref/contrib/comments/example.txt @@ -103,13 +103,16 @@ But let's look at a simple example:: - - {{ form }} - - - - - + + {% csrf_token %} + {{ form }} + + + +
+ + +
Flagging diff --git a/docs/ref/contrib/comments/index.txt b/docs/ref/contrib/comments/index.txt index 817871e976549..7072ed14ac911 100644 --- a/docs/ref/contrib/comments/index.txt +++ b/docs/ref/contrib/comments/index.txt @@ -218,13 +218,18 @@ you can use in the template:: A complete form might look like:: {% get_comment_form for event as form %} -
- {{ form }} - - - - -
+ + + {% csrf_token %} + {{ 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 approach.