From 66be6f2e7a3c642fb3c69e7c2a70cc3f898d77ea Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 28 Feb 2017 13:25:08 +0100 Subject: Avec des parenthèses c'est mieux --- management/commands/cleancourses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management') 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() -- cgit v1.2.1