From f162dc18533875ba53303abb047cc4e2a0c0cf28 Mon Sep 17 00:00:00 2001 From: Gael Le Mignot Date: Fri, 1 Dec 2017 10:47:01 +0100 Subject: [PATCH] Added method for send_reminder_emails command --- teleforma/models/pro.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5