Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed #14225 -- Added a documentation marker (and a 1.2.2 rel…

…ease notes file, required to satisfy Sphinx) for the enable_csrf_checks flag on the test client. Thanks to public@grep.ro for the report.

Backport of r14011 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14022 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 21be09dbb40ba7300b5b1fdb90cf25e8637a4971 1 parent 83f762e
Russell Keith-Magee authored October 08, 2010
29  docs/releases/1.2.2.txt
... ...
@@ -0,0 +1,29 @@
  1
+==========================
  2
+Django 1.2.2 release notes
  3
+==========================
  4
+
  5
+Welcome to Django 1.2.2!
  6
+
  7
+This is the second "bugfix" release in the Django 1.2 series,
  8
+improving the stability and performance of the Django 1.2 codebase.
  9
+
  10
+Django 1.2.2 maintains backwards compatibility with Django
  11
+1.2.1, but contain a number of fixes and other
  12
+improvements. Django 1.2.2 is a recommended upgrade for any
  13
+development or deployment currently using or targeting Django 1.2.
  14
+
  15
+For full details on the new features, backwards incompatibilities, and
  16
+deprecated features in the 1.2 branch, see the :doc:`/releases/1.2`.
  17
+
  18
+One new feature
  19
+===============
  20
+
  21
+Ordinarily, a point release would not include new features, but in the
  22
+case of Django 1.2.2, we have made an exception to this rule.
  23
+
  24
+In order to test a bug fix that forms part of the 1.2.2 release, it
  25
+was necessary to add a feature -- the ``enforce_csrf_checks`` flag --
  26
+to the :mod:`test client <django.test.client>`. This flag forces
  27
+the test client to perform full CSRF checks on forms. The default
  28
+behavior of the test client hasn't changed, but if you want to do
  29
+CSRF checks with the test client, it is now possible to do so.
1  docs/releases/index.txt
@@ -19,6 +19,7 @@ Final releases
19 19
 .. toctree::
20 20
    :maxdepth: 1
21 21
 
  22
+   1.2.2
22 23
    1.2
23 24
 
24 25
 1.1 release
2  docs/topics/testing.txt
@@ -575,6 +575,8 @@ Note a few important things about how the test client works:
575 575
     * By default, the test client will disable any CSRF checks
576 576
       performed by your site.
577 577
 
  578
+      .. versionadded:: 1.2.2
  579
+
578 580
       If, for some reason, you *want* the test client to perform CSRF
579 581
       checks, you can create an instance of the test client that
580 582
       enforces CSRF checks. To do this, pass in the

0 notes on commit 21be09d

Please sign in to comment.
Something went wrong with that request. Please try again.