]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 11:46:26 +0000 (13:46 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 18 Jul 2014 11:46:26 +0000 (13:46 +0200)
teleforma/models/core.py

index 8d7cd97af91ff49ba821b8c5d2106053e9082835..b091aad0d968bc63336c771773c5bea69a4ab898 100644 (file)
@@ -169,7 +169,7 @@ class Course(Model):
 
     @property
     def slug(self):
-        return slugify(self.__unicode__())
+        return slugify(unicode(code))
 
     def to_dict(self):
         dict = {'organization' : self.department.organization.name,