Kaydet (Commit) f73d04dd authored tarafından Ramiro Morales's avatar Ramiro Morales

Removed 'cleanup' management command as per deprecation TL.

üst bb33ee5e
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment