From 13299a6203f4bc3e5b2552c96a51ff2b15da3c43 Mon Sep 17 00:00:00 2001 From: jafarkhan83 Date: Mon, 2 Feb 2026 22:39:07 +0500 Subject: Fixed #36898 -- Documented SessionBase.is_empty(). --- docs/topics/http/sessions.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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() -- cgit v1.3