| 1 |
from django.core.management.base import BaseCommand |
| 2 |
|
| 3 |
from ...models import clear_expired |
| 4 |
|
| 5 |
|
| 6 |
class Command(BaseCommand): |
| 7 |
help = "Can be run as a cronjob or directly to clean out expired tokens" |
| 8 |
|
| 9 |
def handle(self, *args, **options): |
| 10 |
clear_expired() |