diff options
Diffstat (limited to 'pgcommitfest/commitfest/models.py')
-rw-r--r-- | pgcommitfest/commitfest/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py index 23fe1fb..a987e2a 100644 --- a/pgcommitfest/commitfest/models.py +++ b/pgcommitfest/commitfest/models.py @@ -43,6 +43,12 @@ class CommitFest(models.Model): return [v for k,v in self._STATUS_CHOICES if k==self.status][0] @property + def periodstring(self): + if self.startdate and self.enddate: + return "{0} - {1}".format(self.startdate, self.enddate) + return "" + + @property def title(self): return "Commitfest %s" % self.name |