Disabled mail sending for management command check_person_names_and_aliases, to avoid duplicate person email notifications.
- Legacy-Id: 18634
This commit is contained in:
parent
a058d3f5ae
commit
72c7018073
|
@ -4,8 +4,10 @@
|
|||
|
||||
from tqdm import tqdm
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
import debug # pyflakes:ignore
|
||||
|
||||
from ietf.person.models import Person, Alias
|
||||
|
@ -31,6 +33,9 @@ class Command(BaseCommand):
|
|||
badname = []
|
||||
onename = []
|
||||
addrname = []
|
||||
if hasattr(settings, 'SERVER_MODE'):
|
||||
# Try to avoid sending mail during repair
|
||||
settings.SERVER_MODE = 'repair'
|
||||
for person in tqdm(Person.objects.all()):
|
||||
email = person.email()
|
||||
# Person names with junk
|
||||
|
|
Loading…
Reference in a new issue