summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/forms.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/forms.py
parent7a8c9acd025dcb77f0e588f7dcd5c473446b5d72 (diff)
Make it possible to change the status when commenting on a patch
Diffstat (limited to 'pgcommitfest/commitfest/forms.py')
-rw-r--r--pgcommitfest/commitfest/forms.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/forms.py b/pgcommitfest/commitfest/forms.py
index 8c67d89..a083588 100644
--- a/pgcommitfest/commitfest/forms.py
+++ b/pgcommitfest/commitfest/forms.py
@@ -82,12 +82,14 @@ class CommentForm(forms.Form):
review_doc = reviewfield('Documentation')
message = forms.CharField(required=True, widget=forms.Textarea)
+ newstatus = forms.ChoiceField(choices=PatchOnCommitFest.OPEN_STATUS_CHOICES, label='New status')
- def __init__(self, patch, is_review, *args, **kwargs):
+ def __init__(self, patch, poc, is_review, *args, **kwargs):
super(CommentForm, self).__init__(*args, **kwargs)
self.is_review = is_review
self.fields['responseto'].choices = _fetch_thread_choices(patch)
+ self.fields['newstatus'].initial = poc.status
if not is_review:
del self.fields['review_installcheck']
del self.fields['review_implements']