From 47dc4dd9e6742c3fd0f0d4ea654b1e9a0a39f4f7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 5 Aug 2020 23:53:44 +0200 Subject: [PATCH] Fix check consistency script --- management/commands/check_consistency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]: