blob: 3fe66ad3bdaf067a39ce1e133c5b5610c2873ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from ishtar_common import models
class Command(BaseCommand):
help = "./manage.py ishtar_execute_admin_tasks\n\n"\
"Launch pending administration tasks."
def handle(self, *args, **options):
for task in models.AdministrationTask.objects.filter(state='S').all():
task.execute()
|