From e23a548ea1697a879545f3d598982a1b0b9d20fe Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Mon, 1 Oct 2018 11:14:16 +0200 Subject: [PATCH] remove debug mail and format csv date --- teleforma/admin.py | 2 +- teleforma/views/appointment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/admin.py b/teleforma/admin.py index c72f5202..529f3416 100644 --- a/teleforma/admin.py +++ b/teleforma/admin.py @@ -243,7 +243,7 @@ class AppointmentAdmin(admin.ModelAdmin): user = app.student student = user.student.all()[0] - row = [ app.day, app.start, user.last_name, user.first_name, student.iej, app.jury.name ] + row = [ app.day.strftime('%d/%m/%Y'), app.start, user.last_name, user.first_name, student.iej, app.jury.name ] row = [ csv_encode(col) for col in row ] writer.writerow(row) diff --git a/teleforma/views/appointment.py b/teleforma/views/appointment.py index 31ed4daa..fe8bb912 100644 --- a/teleforma/views/appointment.py +++ b/teleforma/views/appointment.py @@ -124,7 +124,7 @@ class Appointments(View): 'student': ap.student, 'main_text': ap.appointment_period.appointment_mail_text } # DEBUG - data['mto'] = "yoanl@pilotsystems.net" + # data['mto'] = "gael@pilotsystems.net" # data['mto'] = "dorothee.lavalle@pre-barreau.com" subject_template = 'teleforma/messages/email_appointment_sujet.txt' -- 2.39.5