summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/orm/queryguide/relationships.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/orm/queryguide/relationships.rst b/doc/build/orm/queryguide/relationships.rst
index 9c621ea9a..7642c70a1 100644
--- a/doc/build/orm/queryguide/relationships.rst
+++ b/doc/build/orm/queryguide/relationships.rst
@@ -760,7 +760,7 @@ order to load related associations:
.. sourcecode:: pycon+sql
>>> from sqlalchemy import select
- >>> from sqlalchemy import selectinload
+ >>> from sqlalchemy.orm import selectinload
>>> stmt = (
... select(User)
... .options(selectinload(User.addresses))
@@ -798,7 +798,7 @@ value from the parent object is used:
.. sourcecode:: pycon+sql
>>> from sqlalchemy import select
- >>> from sqlalchemy import selectinload
+ >>> from sqlalchemy.orm import selectinload
>>> stmt = select(Address).options(selectinload(Address.user))
>>> result = session.scalars(stmt).all()
{execsql}SELECT