From 076e1f0013450ec0ea1123cca2de3b419ceb0f25 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 22 Apr 2021 15:45:15 +0200 Subject: [PATCH] Mails are sent by the cron, not by the script Signed-off-by: Yohann D'ANELLO --- management/commands/check_consistency.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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