forked from DGNum/gestioCOF
remove immediate mail
This commit is contained in:
parent
d524d9286f
commit
8953d3de07
1 changed files with 0 additions and 13 deletions
13
bda/views.py
13
bda/views.py
|
@ -329,7 +329,6 @@ def revente(request, tirage_id):
|
|||
if 'resell' in request.POST:
|
||||
resellform = ResellForm(participant, request.POST, prefix='resell')
|
||||
if resellform.is_valid():
|
||||
datatuple = []
|
||||
attributions = resellform.cleaned_data["attributions"]
|
||||
with transaction.atomic():
|
||||
for attribution in attributions:
|
||||
|
@ -344,18 +343,6 @@ def revente(request, tirage_id):
|
|||
revente.notif_sent = False
|
||||
revente.tirage_done = False
|
||||
revente.shotgun = False
|
||||
context = {
|
||||
'vendeur': participant.user,
|
||||
'show': attribution.spectacle,
|
||||
'revente': revente
|
||||
}
|
||||
datatuple.append((
|
||||
'bda-revente-new', context,
|
||||
settings.MAIL_DATA['revente']['FROM'],
|
||||
[participant.user.email]
|
||||
))
|
||||
revente.save()
|
||||
send_mass_custom_mail(datatuple)
|
||||
# On annule une revente
|
||||
elif 'annul' in request.POST:
|
||||
annulform = AnnulForm(participant, request.POST, prefix='annul')
|
||||
|
|
Loading…
Reference in a new issue