From: Guillaume Pellerin Date: Thu, 4 Feb 2016 11:18:59 +0000 (+0100) Subject: bugfix X-Git-Tag: 1.1~82 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7a5d2e10654974f07904c6f7a8989741dfb0860b;p=teleforma.git bugfix --- diff --git a/teleforma/views/crfpa.py b/teleforma/views/crfpa.py index 82d88d4a..458121ce 100644 --- a/teleforma/views/crfpa.py +++ b/teleforma/views/crfpa.py @@ -450,10 +450,10 @@ class RegistrationPDFView(PDFTemplateResponseMixin, TemplateView): student.trainings.add(student.training) if not student.training and student.trainings.all(): student.training = student.trainings.all()[0] - if not student.oral_1: - student.oral_1 = Course.object.get(code='X') - if not student.oral_2: - student.oral_2 = Course.object.get(code='X') + # if not student.oral_1: + # student.oral_1 = Course.object.get(code='X') + # if not student.oral_2: + # student.oral_2 = Course.object.get(code='X') student.save() profile = user.profile.all()[0] if profile.city: