summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-14 03:57:30 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-14 03:57:30 +0000
commit31ec68c5d939ee63852709163750a0516aaa2619 (patch)
tree3d2b2a6eb8d0b2817a96e8fa564aed7c200d3a0c /docs
parentaf7b6475ca6ab12df6b91beae1bb5b1c29a5782b (diff)
Added a clear() method to sessions. Patch from mrts. Refs #7515.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/sessions.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/sessions.txt b/docs/sessions.txt
index b5c9ba8394..39df04ad71 100644
--- a/docs/sessions.txt
+++ b/docs/sessions.txt
@@ -77,7 +77,7 @@ When ``SessionMiddleware`` is activated, each ``HttpRequest`` object -- the
first argument to any Django view function -- will have a ``session``
attribute, which is a dictionary-like object. You can read it and write to it.
-It implements the following standard dictionary methods:
+A session object has the following standard dictionary methods:
* ``__getitem__(key)``
@@ -106,6 +106,8 @@ It implements the following standard dictionary methods:
* ``setdefault()`` (**New in Django development version**)
+ * ``clear()`` (**New in Django development version**)
+
It also has these methods:
* ``set_test_cookie()``