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):
|
||||||
"""
|
"""
|
||||||
|
@ -9,7 +10,7 @@ def drop_until(predicate, l):
|
||||||
"""
|
"""
|
||||||
for i in range(len(l)):
|
for i in range(len(l)):
|
||||||
if predicate(l[i]):
|
if predicate(l[i]):
|
||||||
return l[i + 1:]
|
return l[i + 1 :]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue