Commit f73d04dd authored by Ramiro Morales's avatar Ramiro Morales
Browse files

Removed 'cleanup' management command as per deprecation TL.

parent bb33ee5e
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
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)
+0 −12
Original line number Diff line number Diff line
@@ -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
---------------

+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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