From: Guillaume Pellerin Date: Fri, 26 Jan 2018 08:44:38 +0000 (+0100) Subject: Bugfix X-Git-Tag: 1.2~8^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e60ee8dc58d018eac9d1f238883676f4803eb7aa;p=teleforma.git Bugfix --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index 07c2d0a5..c88503ab 100644 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -262,7 +262,7 @@ class Script(BaseResource): @property def title(self): - if self.type.name: + if self.type: title = [self.course.title, self.type.name, _("Session") + ' ' + self.session, unicode(self.date_added)] else: title = [self.course.title, _("Session") + ' ' + self.session, unicode(self.date_added)]