summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgcommitfest/commitfest/models.py')
-rw-r--r--pgcommitfest/commitfest/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py
index 145efab..44dd884 100644
--- a/pgcommitfest/commitfest/models.py
+++ b/pgcommitfest/commitfest/models.py
@@ -34,6 +34,10 @@ class CommitFest(models.Model):
def statusstring(self):
return [v for k,v in self._STATUS_CHOICES if k==self.status][0]
+ @property
+ def isopen(self):
+ return self.status == self.STATUS_OPEN
+
def __unicode__(self):
return self.name