Skip to content
Snippets Groups Projects

Resolve "list of subjects should contain columns dependent on the study"

Files
39
@@ -91,7 +91,9 @@ def serialize_appointment(appointment):
subject_string = study_subject.subject.last_name + " " + study_subject.subject.first_name
nd_number = study_subject.nd_number
screening_number = study_subject.screening_number
phone_numbers = ", ".join(filter(None, [study_subject.subject.phone_number, study_subject.subject.phone_number_2, study_subject.subject.phone_number_3]))
phone_numbers = ", ".join(filter(None,
[study_subject.subject.phone_number, study_subject.subject.phone_number_2,
study_subject.subject.phone_number_3]))
appointment_types = ", ".join([unicode(type) for type in appointment.appointment_types.all()])
else:
title = appointment.comment
Loading