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