Removed 'cleanup' management command as per deprecation TL.
This commit is contained in:
parent
bb33ee5e7b
commit
f73d04dda9
|
@ -1,11 +0,0 @@
|
|||
import warnings
|
||||
|
||||
from django.contrib.sessions.management.commands import clearsessions
|
||||
|
||||
|
||||
class Command(clearsessions.Command):
|
||||
def handle_noargs(self, **options):
|
||||
warnings.warn(
|
||||
"The `cleanup` command has been deprecated in favor of `clearsessions`.",
|
||||
DeprecationWarning)
|
||||
super(Command, self).handle_noargs(**options)
|
|
@ -102,18 +102,6 @@ is compatible with the current version of Django.
|
|||
Upon finding things that are incompatible or require notifying the user, it
|
||||
issues a series of warnings.
|
||||
|
||||
cleanup
|
||||
-------
|
||||
|
||||
.. django-admin:: cleanup
|
||||
|
||||
Can be run as a cronjob or directly to clean out old data from the database
|
||||
(only expired sessions at the moment).
|
||||
|
||||
.. versionchanged:: 1.5
|
||||
|
||||
:djadmin:`cleanup` is deprecated. Use :djadmin:`clearsessions` instead.
|
||||
|
||||
compilemessages
|
||||
---------------
|
||||
|
||||
|
|
|
@ -689,7 +689,7 @@ framework.
|
|||
``cleanup`` management command
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The :djadmin:`cleanup` management command has been deprecated and replaced by
|
||||
The ``cleanup`` management command has been deprecated and replaced by
|
||||
:djadmin:`clearsessions`.
|
||||
|
||||
``daily_cleanup.py`` script
|
||||
|
|
|
@ -788,7 +788,7 @@ the built-in :func:`itertools.product` instead.
|
|||
``cleanup`` management command
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The :djadmin:`cleanup` management command has been deprecated and replaced by
|
||||
The ``cleanup`` management command has been deprecated and replaced by
|
||||
:djadmin:`clearsessions`.
|
||||
|
||||
``daily_cleanup.py`` script
|
||||
|
|
Loading…
Reference in New Issue