From: Gael Le Mignot Date: Fri, 1 Dec 2017 09:47:01 +0000 (+0100) Subject: Added method for send_reminder_emails command X-Git-Tag: 2.8.1-pro~218 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f162dc18533875ba53303abb047cc4e2a0c0cf28;p=teleforma.git Added method for send_reminder_emails command --- diff --git a/teleforma/models/pro.py b/teleforma/models/pro.py index ebf47e37..ef992902 100755 --- a/teleforma/models/pro.py +++ b/teleforma/models/pro.py @@ -126,6 +126,14 @@ class Seminar(ClonableMixin, Displayable): else: return "E-learning - %s" % (self.title) + @property + def pretty_title_with_duration(self): + from pbshop.templatetags.tags import fancy_duration + pretty_title = self.pretty_title + if self.duration: + pretty_title += u" - Durée : %s" % (fancy_duration(self.duration)) + return pretty_title + def public_url(self): """ Get a public fully qualified URL for the object