diff --git a/management/commands/check_consistency.py b/management/commands/check_consistency.py index 71a39c6..39226e6 100644 --- a/management/commands/check_consistency.py +++ b/management/commands/check_consistency.py @@ -28,7 +28,7 @@ class Command(BaseCommand): else: self.stdout.write(self.style.SUCCESS("La somme des notes vaut bien zéro.")) - notes = None + notes = Note.objects.none() if options["check_all"]: notes = Note.objects.all() elif options["check"]: