Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed 'cleanup' management command as per deprecation TL.

  • Loading branch information...
commit f73d04dda9f1a96acdab77dacd7bdeaad66ad736 1 parent bb33ee5
Ramiro Morales authored June 28, 2013
11  django/core/management/commands/cleanup.py
... ...
@@ -1,11 +0,0 @@
1  
-import warnings
2  
-
3  
-from django.contrib.sessions.management.commands import clearsessions
4  
-
5  
-
6  
-class Command(clearsessions.Command):
7  
-    def handle_noargs(self, **options):
8  
-        warnings.warn(
9  
-            "The `cleanup` command has been deprecated in favor of `clearsessions`.",
10  
-            DeprecationWarning)
11  
-        super(Command, self).handle_noargs(**options)
12  docs/ref/django-admin.txt
@@ -102,18 +102,6 @@ is compatible with the current version of Django.
102 102
 Upon finding things that are incompatible or require notifying the user, it
103 103
 issues a series of warnings.
104 104
 
105  
-cleanup
106  
--------
107  
-
108  
-.. django-admin:: cleanup
109  
-
110  
-Can be run as a cronjob or directly to clean out old data from the database
111  
-(only expired sessions at the moment).
112  
-
113  
-.. versionchanged:: 1.5
114  
-
115  
-    :djadmin:`cleanup` is deprecated. Use :djadmin:`clearsessions` instead.
116  
-
117 105
 compilemessages
118 106
 ---------------
119 107
 
2  docs/releases/1.5-beta-1.txt
@@ -689,7 +689,7 @@ framework.
689 689
 ``cleanup`` management command
690 690
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
691 691
 
692  
-The :djadmin:`cleanup` management command has been deprecated and replaced by
  692
+The ``cleanup`` management command has been deprecated and replaced by
693 693
 :djadmin:`clearsessions`.
694 694
 
695 695
 ``daily_cleanup.py`` script
2  docs/releases/1.5.txt
@@ -788,7 +788,7 @@ the built-in :func:`itertools.product` instead.
788 788
 ``cleanup`` management command
789 789
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
790 790
 
791  
-The :djadmin:`cleanup` management command has been deprecated and replaced by
  791
+The ``cleanup`` management command has been deprecated and replaced by
792 792
 :djadmin:`clearsessions`.
793 793
 
794 794
 ``daily_cleanup.py`` script

0 notes on commit f73d04d

Please sign in to comment.
Something went wrong with that request. Please try again.