Removed 'cleanup' management command as per deprecation TL.

This commit is contained in:
Ramiro Morales 2013-06-28 13:38:04 -03:00
parent bb33ee5e7b
commit f73d04dda9
4 changed files with 2 additions and 25 deletions

View File

@ -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)

View File

@ -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
---------------

View File

@ -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

View File

@ -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