2012-10-27 17:49:46 +08:00
|
|
|
import warnings
|
2008-07-06 14:39:44 +08:00
|
|
|
|
2012-10-27 17:49:46 +08:00
|
|
|
from django.contrib.sessions.management.commands import clearsessions
|
2008-07-06 14:39:44 +08:00
|
|
|
|
2012-10-27 17:49:46 +08:00
|
|
|
|
|
|
|
class Command(clearsessions.Command):
|
2008-07-06 14:39:44 +08:00
|
|
|
def handle_noargs(self, **options):
|
2012-10-27 17:49:46 +08:00
|
|
|
warnings.warn(
|
|
|
|
"The `cleanup` command has been deprecated in favor of `clearsessions`.",
|
|
|
|
PendingDeprecationWarning)
|
|
|
|
super(Command, self).handle_noargs(**options)
|