diff options
Diffstat (limited to 'management/commands')
-rw-r--r-- | management/commands/cleancourses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/cleancourses.py b/management/commands/cleancourses.py index 8bb1b97..5f71861 100644 --- a/management/commands/cleancourses.py +++ b/management/commands/cleancourses.py @@ -26,7 +26,7 @@ class Command(BaseCommand): parser.add_argument("--timetable", type=int, nargs="+") def handle(self, *args, **options): - with transaction.atomic: + with transaction.atomic(): if options["timetable"] is None: Course.objects.all().delete() Group.objects.all().delete() |