]> git.parisson.com Git - teleforma.git/commitdiff
remove debug mail and format csv date appointment
authorYoan Le Clanche <yoan@ellington.pilotsystems.net>
Mon, 1 Oct 2018 09:14:16 +0000 (11:14 +0200)
committerYoan Le Clanche <yoan@ellington.pilotsystems.net>
Mon, 1 Oct 2018 09:14:16 +0000 (11:14 +0200)
teleforma/admin.py
teleforma/views/appointment.py

index c72f520239f9e274c52d2ce7a5e38a9432704a57..529f3416abc0f76066206492cc181db89bf5aeea 100644 (file)
@@ -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)
index 31ed4daa620f246156d181ee97fade0b55dfe2cf..fe8bb912b2ecb1eca0b44334cd33fd5ce225671d 100644 (file)
@@ -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'