summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorjafarkhan83 <jafarkhan.master@gmail.com>2026-02-02 22:39:07 +0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-02-03 11:02:50 -0500
commit13299a6203f4bc3e5b2552c96a51ff2b15da3c43 (patch)
tree0e5f4f7b7f4325c641d74a300b324ea15801a456 /docs/topics
parentaf361d3be4725b9da1022c078b2db02b9d9b96e7 (diff)
Fixed #36898 -- Documented SessionBase.is_empty().
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/http/sessions.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index 4cc5634780..797b49ffa2 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -255,6 +255,10 @@ You can edit it multiple times.
can't be accessed again from the user's browser (for example, the
:func:`django.contrib.auth.logout` function calls it).
+ .. method:: is_empty()
+
+ Returns ``True`` if the session does not have a key and is empty.
+
.. method:: set_test_cookie()
.. method:: aset_test_cookie()