Repository: incubator-airflow
Updated Branches:
  refs/heads/v1-10-test 2da6139b0 -> 88ccad5da


[AIRFLOW-2390] Resolve FlaskWTFDeprecationWarning

- Replace soon to be deprecated `flask_wtf.Form`
class with `from flask_wtf import FlaskForm`

Closes #3278 from kaxil/AIRFLOW-2390

(cherry picked from commit ae48fce9b097e48f09b3b8829b3b80dea21c58e9)
Signed-off-by: Fokko Driesprong <fokkodriespr...@godatadriven.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/88ccad5d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/88ccad5d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/88ccad5d

Branch: refs/heads/v1-10-test
Commit: 88ccad5da9bf1507cb80ee96b0858f7ade704c7b
Parents: 2da6139
Author: Kaxil Naik <kaxiln...@gmail.com>
Authored: Mon Apr 30 08:35:54 2018 +0200
Committer: Fokko Driesprong <fokkodriespr...@godatadriven.com>
Committed: Mon Apr 30 08:36:17 2018 +0200

----------------------------------------------------------------------
 airflow/www/forms.py      | 10 +++++-----
 airflow/www_rbac/forms.py | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/88ccad5d/airflow/www/forms.py
----------------------------------------------------------------------
diff --git a/airflow/www/forms.py b/airflow/www/forms.py
index 1904e72..d6fbe13 100644
--- a/airflow/www/forms.py
+++ b/airflow/www/forms.py
@@ -7,9 +7,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -25,16 +25,16 @@ from __future__ import unicode_literals
 from airflow.utils import timezone
 from flask_admin.form import DateTimePickerWidget
 from wtforms import DateTimeField, SelectField
-from flask_wtf import Form
+from flask_wtf import FlaskForm
 
 
-class DateTimeForm(Form):
+class DateTimeForm(FlaskForm):
     # Date filter form needed for gantt and graph view
     execution_date = DateTimeField(
         "Execution date", widget=DateTimePickerWidget())
 
 
-class DateTimeWithNumRunsForm(Form):
+class DateTimeWithNumRunsForm(FlaskForm):
     # Date time and number of runs form for tree view, task duration
     # and landing times
     base_date = DateTimeField(

http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/88ccad5d/airflow/www_rbac/forms.py
----------------------------------------------------------------------
diff --git a/airflow/www_rbac/forms.py b/airflow/www_rbac/forms.py
index 63d27e6..61a7ce2 100644
--- a/airflow/www_rbac/forms.py
+++ b/airflow/www_rbac/forms.py
@@ -7,9 +7,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -30,20 +30,20 @@ from flask_appbuilder.fieldwidgets import 
(BS3TextFieldWidget, BS3TextAreaFieldW
                                            BS3PasswordFieldWidget, 
Select2Widget,
                                            DateTimePickerWidget)
 from flask_babel import lazy_gettext
-from flask_wtf import Form
+from flask_wtf import FlaskForm
 
 from wtforms import validators
 from wtforms.fields import (IntegerField, SelectField, TextAreaField, 
PasswordField,
                             StringField, DateTimeField, BooleanField)
 
 
-class DateTimeForm(Form):
+class DateTimeForm(FlaskForm):
     # Date filter form needed for gantt and graph view
     execution_date = DateTimeField(
         "Execution date", widget=DateTimePickerWidget())
 
 
-class DateTimeWithNumRunsForm(Form):
+class DateTimeWithNumRunsForm(FlaskForm):
     # Date time and number of runs form for tree view, task duration
     # and landing times
     base_date = DateTimeField(

Reply via email to