summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2014-04-23 15:34:52 +0000
committerMagnus Hagander2014-04-23 15:34:52 +0000
commitdd66431a698fb3cf829fd9bb8665ec04f58a4126 (patch)
tree046a2230354c2f2c9b48fa1365a0d592472f6f84 /pgcommitfest/commitfest/models.py
parent7a8c9acd025dcb77f0e588f7dcd5c473446b5d72 (diff)
Make it possible to change the status when commenting on a patch
Diffstat (limited to 'pgcommitfest/commitfest/models.py')
-rw-r--r--pgcommitfest/commitfest/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/models.py b/pgcommitfest/commitfest/models.py
index f8ea862..76c582d 100644
--- a/pgcommitfest/commitfest/models.py
+++ b/pgcommitfest/commitfest/models.py
@@ -145,6 +145,7 @@ class PatchOnCommitFest(models.Model):
(STATUS_REJECTED, 'Rejected'),
)
OPEN_STATUSES=(STATUS_REVIEW, STATUS_AUTHOR, STATUS_COMMITTER)
+ OPEN_STATUS_CHOICES=[x for x in _STATUS_CHOICES if x[0] in OPEN_STATUSES]
patch = models.ForeignKey(Patch, blank=False, null=False)
commitfest = models.ForeignKey(CommitFest, blank=False, null=False)