From: Antony Gelberg Date: Sat, 16 Mar 2019 18:32:32 +0000 (+0200) Subject: Docs: import related classes when using string name X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c25221838d726f316dc04102b6b2002cec6b3a6c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Docs: import related classes when using string name --- 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