use items() instead of iteritems() (#39560)
This commit is contained in:
parent
fce66ba72e
commit
0afd56441d
|
@ -102,7 +102,7 @@ def email_sectors(formdatas, when):
|
|||
if sector:
|
||||
sectors[sector.contact_email].append(data)
|
||||
|
||||
for destination, data in sectors.iteritems():
|
||||
for destination, data in sectors.items():
|
||||
destinations = [d.strip() for d in destination.split(',') if d.strip()]
|
||||
mail = EmailMessage(subject.render(context).strip(), message.render(context),
|
||||
settings.DEFAULT_FROM_EMAIL, destinations)
|
||||
|
|
Loading…
Reference in New Issue