From 4fc2db9bd6fd83a9dfc72dbc8f02c4ddfe98ab08 Mon Sep 17 00:00:00 2001 From: Marcin Szymanski Date: Thu, 15 Aug 2019 10:35:36 +0100 Subject: [PATCH] fix default value --- .gitignore | 1 + deploy-plugin/deploy_plugin.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1062418..b4a038c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +__pycache__/ .idea/ *.iml diff --git a/deploy-plugin/deploy_plugin.py b/deploy-plugin/deploy_plugin.py index 9ea37be..8cdec84 100644 --- a/deploy-plugin/deploy_plugin.py +++ b/deploy-plugin/deploy_plugin.py @@ -56,7 +56,6 @@ def list(self): form = GitBranchForm() form.git_branches.choices = [(brn, brn) for brn in remote_branches] - form.git_branches.default = "origin/master" return self.render_template("deploy.html", title=title, form=form, data=data) @@ -94,4 +93,4 @@ class AirflowDeploymentPlugin(AirflowPlugin): class GitBranchForm(FlaskForm): - git_branches = SelectField("Git branch") + git_branches = SelectField("Git branch", default="origin/master")