mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Address deprecation warning around wtf Form
It’s been renamed to avoid a conflict. Not a conflict we have to worry about. So we can just change our import and get rid of the deprecation warning.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import re
|
import re
|
||||||
import pytz
|
import pytz
|
||||||
|
|
||||||
from flask_wtf import Form
|
from flask_wtf import FlaskForm as Form
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from notifications_utils.recipients import (
|
from notifications_utils.recipients import (
|
||||||
validate_phone_number,
|
validate_phone_number,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from flask import render_template, current_app, abort
|
from flask import render_template, current_app, abort
|
||||||
from flask_wtf import Form
|
from flask_wtf import FlaskForm as Form
|
||||||
from wtforms import StringField, PasswordField, TextAreaField, FileField, validators
|
from wtforms import StringField, PasswordField, TextAreaField, FileField, validators
|
||||||
from notifications_utils.template import Template
|
from notifications_utils.template import Template
|
||||||
from app.main import main
|
from app.main import main
|
||||||
|
|||||||
Reference in New Issue
Block a user