cosmetic: blackify and isortify
This commit is contained in:
parent
12c10847e7
commit
727626cadd
2 changed files with 5 additions and 5 deletions
|
@ -18,8 +18,7 @@ from bda.models import (
|
||||||
SpectacleRevente,
|
SpectacleRevente,
|
||||||
Tirage,
|
Tirage,
|
||||||
)
|
)
|
||||||
|
from utils.mailutils import SendMassMailRecipientRefused, send_mass_custom_mail_wrapper
|
||||||
from utils.mailutils import send_mass_custom_mail_wrapper, SendMassMailRecipientRefused
|
|
||||||
|
|
||||||
|
|
||||||
class ReadOnlyMixin(object):
|
class ReadOnlyMixin(object):
|
||||||
|
@ -152,7 +151,7 @@ class ParticipantAdmin(ReadOnlyMixin, admin.ModelAdmin):
|
||||||
count -= len(errors)
|
count -= len(errors)
|
||||||
self.message_user(
|
self.message_user(
|
||||||
request,
|
request,
|
||||||
"Les emails suivant causent des erreurs: {}".format(faulty_emails)
|
"Les emails suivant causent des erreurs: {}".format(faulty_emails),
|
||||||
)
|
)
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from custommail.shortcuts import send_mass_custom_mail
|
|
||||||
from smtplib import SMTPRecipientsRefused
|
from smtplib import SMTPRecipientsRefused
|
||||||
|
|
||||||
|
from custommail.shortcuts import send_mass_custom_mail
|
||||||
|
|
||||||
|
|
||||||
def drop_until(predicate, l):
|
def drop_until(predicate, l):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue