mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
Taken from http://code.google.com/p/django-confirmation/. Code is under the BSD 3-clause license. (imported from commit cfb5a511097fe14fba7f1bcea62dfa25cfb58622)
18 lines
458 B
Python
18 lines
458 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com>
|
|
|
|
__revision__ = '$Id: cleanupconfirmation.py 5 2008-11-18 09:10:12Z jarek.zgoda $'
|
|
|
|
|
|
from django.core.management.base import NoArgsCommand
|
|
|
|
from confirmation.models import Confirmation
|
|
|
|
|
|
class Command(NoArgsCommand):
|
|
help = 'Delete expired confirmations from database'
|
|
|
|
def handle_noargs(self, **options):
|
|
Confirmation.objects.delete_expired_confirmations()
|