summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2013-07-19 15:13:38 +0000
committerMagnus Hagander2013-07-19 15:13:38 +0000
commitf634c5212b59511109fc25b57d716bdfe56cd495 (patch)
treeea227fdd10666c45a8f58cd0036ab16e880aa0f9 /pgcommitfest/commitfest/models.py
parente70b670283d3b768b5f73fcef46e7549c59d84b7 (diff)
Only CF managers (=staff users) can add patches to != open fests
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