diff --git a/management/commands/check_consistency.py b/management/commands/check_consistency.py index 5249723..cf6dad7 100644 --- a/management/commands/check_consistency.py +++ b/management/commands/check_consistency.py @@ -1,6 +1,6 @@ # Copyright (C) 2018-2020 by BDE ENS Paris-Saclay # SPDX-License-Identifier: GPL-3.0-or-later -from django.core.mail import send_mail + from django.core.management import BaseCommand from django.db.models import Sum, F @@ -14,7 +14,6 @@ class Command(BaseCommand): parser.add_argument('--check-all', '-a', action='store_true', help='Check all notes') parser.add_argument('--check', '-c', type=int, nargs='+', help='Select note ids') parser.add_argument('--fix', '-f', action='store_true', help='Fix note balances') - parser.add_argument('--mail', '-m', action='store_true', help='Send mail to admins if there is an error') def handle(self, *args, **options): error = False