django-cas-server/cas_server/management/commands/cas_clean_sessions.py
Valentin Samir 39557d1942 PEP8
2015-06-12 18:12:35 +02:00

13 lines
302 B
Python

from django.core.management.base import BaseCommand
from django.utils.translation import ugettext_lazy as _
from ... import models
class Command(BaseCommand):
args = ''
help = _(u"Clean deleted sessions")
def handle(self, *args, **options):
models.User.clean_deleted_sessions()