From ebe540528269edde89365cf9330f98ebcad29fea Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Tue, 27 Oct 2009 21:50:58 +0000 Subject: Added a no-op {% csrf_token %} tag to 1.1.X, to ease transition of apps to 1.2 git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11674 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/templates/builtins.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index a2f8b9f8b3..d98e5055ed 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -53,6 +53,15 @@ Ignore everything between ``{% comment %}`` and ``{% endcomment %}`` .. templatetag:: cycle +csrf_token +~~~~~~~~~~ + +.. versionadded:: 1.1.2 + +In the Django 1.1.X series, this is a no-op tag that returns an empty string. +It exists to ease the transition to Django 1.2, in which it is used for CSRF +protection. + cycle ~~~~~ -- cgit v1.3