]> git.parisson.com Git - teleforma.git/commitdiff
add conf title to conf unicode
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Apr 2013 15:02:42 +0000 (17:02 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 16 Apr 2013 15:02:42 +0000 (17:02 +0200)
teleforma/models/core.py

index 249e6d6602bcfed394cdc107da542b1849d77997..c4dd23d93b0e28c243fca09264ec2029899a506d 100755 (executable)
@@ -508,13 +508,13 @@ class Conference(Displayable):
 
     def __unicode__(self):
         if self.professor:
-            list = [self.course.department.name, self.course.title,
+            list = [self.title, self.course.title,
                            self.session,
                            self.professor.user.first_name,
                            self.professor.user.last_name,
                            str(self.date_begin)]
         else:
-            list = [self.course.department.name, self.course.title,
+            list = [self.title, self.course.title,
                            self.session,
                            str(self.date_begin)]
         return ' - '.join(list)