diff --git a/flask_appbuilder/security/forms.py b/flask_appbuilder/security/forms.py index 2f1a8d3ebe..bb16c258ba 100644 --- a/flask_appbuilder/security/forms.py +++ b/flask_appbuilder/security/forms.py @@ -18,7 +18,7 @@ class SelectDataRequired(DataRequired): select fields """ - field_flags = () + field_flags = {} class LoginForm_oid(DynamicForm): diff --git a/flask_appbuilder/validators.py b/flask_appbuilder/validators.py index 6453611917..2c49fed625 100644 --- a/flask_appbuilder/validators.py +++ b/flask_appbuilder/validators.py @@ -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