Skip to content

Commit

Permalink
Changed the form of field_flags to that of WTForms 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorem2 committed Dec 17, 2024
1 parent 6c45a08 commit bf8465f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit bf8465f

Please sign in to comment.