summaryrefslogtreecommitdiff
path: root/program/management/commands/cleanup_defaultshow.py
diff options
context:
space:
mode:
Diffstat (limited to 'program/management/commands/cleanup_defaultshow.py')
-rw-r--r--program/management/commands/cleanup_defaultshow.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/management/commands/cleanup_defaultshow.py b/program/management/commands/cleanup_defaultshow.py
index 2f6ccca..98d3f98 100644
--- a/program/management/commands/cleanup_defaultshow.py
+++ b/program/management/commands/cleanup_defaultshow.py
@@ -3,10 +3,12 @@ from django.db import transaction
from program.models import Show, TimeSlot, ProgramSlot
+
class Command(NoArgsCommand):
+ help = 'removes default shows without note'
+
@transaction.commit_manually
def handle_noargs(self, **options):
- help = 'removes default shows without note'
default_show = Show.objects.get(pk=1)
try:
@@ -18,4 +20,3 @@ class Command(NoArgsCommand):
transaction.rollback()
else:
transaction.commit()
-