From: yomguy Date: Thu, 26 Sep 2013 08:54:18 +0000 (+0200) Subject: course title in conf form X-Git-Tag: 1.3-TC~17 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=51a68c37d159ae2f963fd7fd631d370a64ed70c2;p=teleforma.git course title in conf form --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index f0993b43..4a403c9f 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -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,