diff --git a/sqladmin/forms.py b/sqladmin/forms.py index 89e78ad0..f59d33ee 100644 --- a/sqladmin/forms.py +++ b/sqladmin/forms.py @@ -24,6 +24,7 @@ RelationshipProperty, sessionmaker, ) +from sqlalchemy.sql import Select from sqlalchemy.sql.elements import Label from sqlalchemy.sql.schema import Column from wtforms import ( @@ -110,7 +111,7 @@ def _inner(func: T_CC) -> T_CC: class ModelConverterBase: - relationships_statements: dict[str, Any] = {} + relationships_statements: dict[str, Select] = {} """ Select statement for relationships. """