Skip to content

Commit 4ca96e9

Browse files
authored
fix: wtforms 3.2 breaking field_flags (#2279)
* test: wtforms 3.2 * fix: wtforms 3.2 breaking field_flags * fix ci * fix ci
1 parent a374c14 commit 4ca96e9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
strategy:
1414
matrix:
15-
python-version: [3.8]
15+
python-version: ["3.10"]
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-22.04
4242
strategy:
4343
matrix:
44-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
44+
python-version: ["3.9", "3.10", "3.11", "3.12"]
4545
env:
4646
SQLALCHEMY_DATABASE_URI:
4747
postgresql+psycopg2://pguser:[email protected]:15432/app
@@ -91,7 +91,7 @@ jobs:
9191
runs-on: ubuntu-22.04
9292
strategy:
9393
matrix:
94-
python-version: [3.8]
94+
python-version: ["3.10"]
9595
env:
9696
SQLALCHEMY_DATABASE_URI: |
9797
mysql+mysqldb://mysqluser:[email protected]:13306/app?charset=utf8mb4&binary_prefix=true
@@ -142,7 +142,7 @@ jobs:
142142
runs-on: ubuntu-22.04
143143
strategy:
144144
matrix:
145-
python-version: [3.8]
145+
python-version: ["3.10"]
146146
env:
147147
SQLALCHEMY_DATABASE_URI: |
148148
mssql+pyodbc://sa:Password_123@localhost:11433/master?driver=FreeTDS
@@ -192,7 +192,7 @@ jobs:
192192
runs-on: ubuntu-22.04
193193
strategy:
194194
matrix:
195-
python-version: [3.8]
195+
python-version: ["3.10"]
196196
services:
197197
mongo:
198198
image: mongo:4.4.1-bionic
@@ -224,7 +224,7 @@ jobs:
224224
runs-on: ubuntu-22.04
225225
strategy:
226226
matrix:
227-
python-version: [3.8]
227+
python-version: ["3.10"]
228228
steps:
229229
- uses: actions/checkout@v4
230230
- name: Setup Python

flask_appbuilder/security/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SelectDataRequired(DataRequired):
1818
select fields
1919
"""
2020

21-
field_flags = ()
21+
field_flags = {}
2222

2323

2424
class LoginForm_oid(DynamicForm):

flask_appbuilder/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Unique:
2626
a specified table field.
2727
"""
2828

29-
field_flags = ("unique",)
29+
field_flags = {"unique": True}
3030

3131
def __init__(
3232
self, datamodel: BaseInterface, col_name: str, message: Optional[str] = None

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ werkzeug==3.0.3
135135
# flask-login
136136
wrapt==1.15.0
137137
# via deprecated
138-
wtforms==3.1.0
138+
wtforms==3.2.1
139139
# via
140140
# flask-appbuilder
141141
# flask-wtf

0 commit comments

Comments
 (0)