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

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