summaryrefslogtreecommitdiff
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:03:26 -0500
commit03a15d1063f53059ee934f487503ade2fbc1e39d (patch)
treeb366423655d46f8896ba8bfb27a626d1626137dc
parent7b6b78f3de90f97259576da44a6120f974526579 (diff)
[6.0.x] Fixed #36898 -- Documented SessionBase.is_empty().
Backport of 13299a6203f4bc3e5b2552c96a51ff2b15da3c43 from main.
-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 6fb329dd9a..8fde3df211 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()