Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed 'cleanup' management command as per deprecation TL.

  • Loading branch information...
commit f73d04dda9f1a96acdab77dacd7bdeaad66ad736 1 parent bb33ee5
@ramiro ramiro authored
View
11 django/core/management/commands/cleanup.py
@@ -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
12 docs/ref/django-admin.txt
@@ -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
2  docs/releases/1.5-beta-1.txt
@@ -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
2  docs/releases/1.5.txt
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.