mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32301 -- Made clearsessions raise CommandError when clear_expired() is not implemented.
This commit is contained in:
committed by
Mariusz Felisiak
parent
270072c4c2
commit
b11ec9a69e
6
tests/sessions_tests/no_clear_expired.py
Normal file
6
tests/sessions_tests/no_clear_expired.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.contrib.sessions.backends.base import SessionBase
|
||||
|
||||
|
||||
class SessionStore(SessionBase):
|
||||
"""Session store without support for clearing expired sessions."""
|
||||
pass
|
||||
Reference in New Issue
Block a user