diff --git a/flask_appbuilder/models/sqla/interface.py b/flask_appbuilder/models/sqla/interface.py index 79e602bb6c..3afb77b99e 100644 --- a/flask_appbuilder/models/sqla/interface.py +++ b/flask_appbuilder/models/sqla/interface.py @@ -305,7 +305,7 @@ def apply_outer_select_joins( root_relation ) or self.is_relation_one_to_many(root_relation): query = query.options( - Load(self.obj).joinedload(root_relation).load_only(leaf_column) + Load(self.obj).lazyload(root_relation).load_only(leaf_column) ) else: related_model = self.get_related_model(root_relation)