From 30a64755b612437be89d2a614a4bad51233ac185 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 13 2015 16:26:54 +0000 Subject: Drop the specifying the branches in the form to open a pull-request --- diff --git a/progit/forms.py b/progit/forms.py index 9e69885..4d173b7 100644 --- a/progit/forms.py +++ b/progit/forms.py @@ -58,22 +58,6 @@ class RequestPullForm(wtf.Form): 'Title*', [wtforms.validators.Required()] ) - branch = wtforms.SelectField( - 'Request merge to branch*', - [wtforms.validators.Required()], - choices=[(item, item) for item in []] - ) - - def __init__(self, *args, **kwargs): - """ Calls the default constructor with the normal argument but - uses the list of collection provided to fill the choices of the - drop-down list. - """ - super(RequestPullForm, self).__init__(*args, **kwargs) - if 'branches' in kwargs: - self.branch.choices = [ - (branch, branch) for branch in kwargs['branches'] - ] class AddIssueCommentForm(wtf.Form):