summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-12 18:53:55 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-12 18:53:55 -0500
commit56e59be4e7476d7d5a10760c84b8d5ee471a6d94 (patch)
tree1cea863a521ce0a8ea27071508f24f3b9f8ee66a /lib/sqlalchemy/orm
parentaf3bfefc622031786a4f9d9befd8b1d1da8a8922 (diff)
downloadsqlalchemy-56e59be4e7476d7d5a10760c84b8d5ee471a6d94.tar.gz
QueryableAttribute can stringify itself without triggering a mapper compile. prevents confusion
when stringing the attr during an exception for something else like a bad event listen
Diffstat (limited to 'lib/sqlalchemy/orm')
-rw-r--r--lib/sqlalchemy/orm/attributes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index 6b57d33f5..eb923bc4e 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -113,7 +113,7 @@ class QueryableAttribute(interfaces.PropComparator):
)
def __str__(self):
- return repr(self.parententity) + "." + self.property.key
+ return "%s.%s" % (self.class_.__name__, self.key)
@util.memoized_property
def property(self):