django1/django/core/management/commands/cleanup.py

12 lines
369 B
Python
Raw Normal View History

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`.",
PendingDeprecationWarning)
super(Command, self).handle_noargs(**options)