summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/dynamic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-06-26 13:24:22 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-06-26 13:49:49 -0400
commit9ac0f8119e34a696fbf711e00262e9c0851b749c (patch)
treef05beb1e57e70d4e286ac8b068f992f4fb52b59c /lib/sqlalchemy/orm/dynamic.py
parente04594339c19c3cd8b8e0d96ce83e5ded961dbb7 (diff)
downloadsqlalchemy-9ac0f8119e34a696fbf711e00262e9c0851b749c.tar.gz
Support state expiration for with_expression(); rename deferred_expression
The attributeimpl for a deferred_expression does not support a scalar loader, add new configurability so that the impl can have this flag turned off. Document that the with_expression() system currently does not offer any deferred loading. To eliminate confusion over "deferred", which refers to lazy loading of column attributes, and "with_expression", which refers to an attribute that is explicitly at query time only, rename deferred_expression to query_expression. Change-Id: I07c4a050ed68c79ccbde9492e9de1630b7470d74
Diffstat (limited to 'lib/sqlalchemy/orm/dynamic.py')
-rw-r--r--lib/sqlalchemy/orm/dynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/dynamic.py b/lib/sqlalchemy/orm/dynamic.py
index 9f99740d9..bb63067b0 100644
--- a/lib/sqlalchemy/orm/dynamic.py
+++ b/lib/sqlalchemy/orm/dynamic.py
@@ -44,7 +44,7 @@ class DynaLoader(strategies.AbstractRelationshipLoader):
class DynamicAttributeImpl(attributes.AttributeImpl):
uses_objects = True
- accepts_scalar_loader = False
+ default_accepts_scalar_loader = False
supports_population = False
collection = False