From c25221838d726f316dc04102b6b2002cec6b3a6c Mon Sep 17 00:00:00 2001 From: Antony Gelberg Date: Sat, 16 Mar 2019 20:32:32 +0200 Subject: [PATCH] Docs: import related classes when using string name --- lib/sqlalchemy/orm/relationships.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index b00d72d64c..3decb61423 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -182,7 +182,9 @@ class RelationshipProperty(StrategizedProperty): callables that evaluate the string as Python code, using the Declarative class-registry as a namespace. This allows the lookup of related classes to be automatic via their string name, and removes the - need to import related classes at all into the local module space:: + need to import related classes at all into the local module + space. (It does **not** remove the need to import related classes + at application startup.) from sqlalchemy.ext.declarative import declarative_base -- 2.47.3