]> git.parisson.com Git - teleforma.git/commitdiff
course title in conf form
authoryomguy <yomguy@parisson.com>
Thu, 26 Sep 2013 08:54:18 +0000 (10:54 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 26 Sep 2013 08:54:18 +0000 (10:54 +0200)
teleforma/models/core.py

index f0993b439118ca681742d5d54fa200ebbc448e95..4a403c9f47b7568e3095ec486bf508c3e5c9a9b4 100644 (file)
@@ -168,11 +168,11 @@ class Course(Model):
     notes = generic.GenericRelation(Note)
 
     def __unicode__(self):
-        return self.code
+        return self.title
 
     @property
     def slug(self):
-        return slugify(self.__unicode__())
+        return slugify(self.code)
 
     def to_dict(self):
         dict = {'organization' : self.department.organization.name,