diff options
author | Alban Gruin | 2018-01-27 17:56:45 +0100 |
---|---|---|
committer | Alban Gruin | 2018-01-27 18:13:25 +0100 |
commit | c9388e29b2f9ee18a9e190683a8a33fb710684c5 (patch) | |
tree | 1d9402e02719110d3a0f15b74500b57afe0d2fd4 /management/commands/cleancourses.py | |
parent | 465c1c13f2e5a77f296de92d4b5b14cf319c68c5 (diff) |
PEP8
Diffstat (limited to 'management/commands/cleancourses.py')
-rw-r--r-- | management/commands/cleancourses.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/management/commands/cleancourses.py b/management/commands/cleancourses.py index 310c843..88eec64 100644 --- a/management/commands/cleancourses.py +++ b/management/commands/cleancourses.py @@ -30,7 +30,8 @@ class Command(BaseCommand): Course.objects.all().delete() Group.objects.all().delete() else: - Course.objects.filter(source__id__in=options["source"]).delete() + Course.objects.filter(source__id__in=options["source"]) \ + .delete() Group.objects.filter(source__id__in=options["source"]).delete() self.stdout.write(self.style.SUCCESS("Done.")) |