summaryrefslogtreecommitdiff
path: root/program/management/commands/update_programslots.py
diff options
context:
space:
mode:
Diffstat (limited to 'program/management/commands/update_programslots.py')
-rw-r--r--program/management/commands/update_programslots.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/program/management/commands/update_programslots.py b/program/management/commands/update_programslots.py
deleted file mode 100644
index 6f7ec90..0000000
--- a/program/management/commands/update_programslots.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from django.core.management.base import NoArgsCommand
-
-from program.models import ProgramSlot
-
-from datetime import datetime
-
-
-class Command(NoArgsCommand):
- help = 'update programslots by setting is_active'
-
- def handle_noargs(self, **options):
- deactivated = ProgramSlot.objects.filter(until__lt=datetime.now()).update(is_active=False)
- activated = ProgramSlot.objects.filter(until__gt=datetime.now()).update(is_active=True)
-
- print "%s program slots activated, %s program slots de-activated" % (activated, deactivated)