Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wtforms 3.2 breaking field_flags #2279

Merged
merged 4 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading