From: Yoan Le Clanche Date: Mon, 1 Oct 2018 09:14:16 +0000 (+0200) Subject: remove debug mail and format csv date X-Git-Tag: 1.4.0~35 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=refs%2Fheads%2Fappointment;p=teleforma.git remove debug mail and format csv date --- 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'