diff options
author | Alban Gruin | 2017-02-28 13:25:08 +0100 |
---|---|---|
committer | Alban Gruin | 2017-02-28 13:25:08 +0100 |
commit | 66be6f2e7a3c642fb3c69e7c2a70cc3f898d77ea (patch) | |
tree | 4a1287e1a232b93a822b8fce9ee8c7eb5977baa0 /management/commands | |
parent | 2ca125053e753482d13f40da3c602c964b215626 (diff) |
Avec des parenthèses c'est mieuxv0.7.0
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() |