]> git.parisson.com Git - teleforma.git/commitdiff
Added method for send_reminder_emails command
authorGael Le Mignot <gael@pilotsystems.net>
Fri, 1 Dec 2017 09:47:01 +0000 (10:47 +0100)
committerGael Le Mignot <gael@pilotsystems.net>
Fri, 1 Dec 2017 09:47:01 +0000 (10:47 +0100)
teleforma/models/pro.py

index ebf47e3792ba0899e6fb2e4eb5b9bd575aef5b31..ef992902a0d0eb6c256a847471bff0aa3f337d61 100755 (executable)
@@ -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