Skip to content

Commit

Permalink
fix: wtforms 3.2 breaking field_flags (#2279)
Browse files Browse the repository at this point in the history
* test: wtforms 3.2

* fix: wtforms 3.2 breaking field_flags

* fix ci

* fix ci
  • Loading branch information
dpgaspar authored Oct 23, 2024
1 parent a374c14 commit 4ca96e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
SQLALCHEMY_DATABASE_URI:
postgresql+psycopg2://pguser:[email protected]:15432/app
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
env:
SQLALCHEMY_DATABASE_URI: |
mysql+mysqldb://mysqluser:[email protected]:13306/app?charset=utf8mb4&binary_prefix=true
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
env:
SQLALCHEMY_DATABASE_URI: |
mssql+pyodbc://sa:Password_123@localhost:11433/master?driver=FreeTDS
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
services:
mongo:
image: mongo:4.4.1-bionic
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion flask_appbuilder/security/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SelectDataRequired(DataRequired):
select fields
"""

field_flags = ()
field_flags = {}


class LoginForm_oid(DynamicForm):
Expand Down
2 changes: 1 addition & 1 deletion flask_appbuilder/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Unique:
a specified table field.
"""

field_flags = ("unique",)
field_flags = {"unique": True}

def __init__(
self, datamodel: BaseInterface, col_name: str, message: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ werkzeug==3.0.3
# flask-login
wrapt==1.15.0
# via deprecated
wtforms==3.1.0
wtforms==3.2.1
# via
# flask-appbuilder
# flask-wtf

0 comments on commit 4ca96e9

Please sign in to comment.