From e616c2fb3cbc1f2fb7102f3fa666439c688e48b7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 2 Aug 2010 15:29:31 -0400 Subject: - if @classproperty is used with a regular class-bound mapper property attribute, it will be called to get the actual attribute value during initialization. Currently, there's no advantage to using @classproperty on a column or relationship attribute of a declarative class that isn't a mixin - evaluation is at the same time as if @classproperty weren't used. But here we at least allow it to function as expected. - docs for column_property() with declarative - mixin docs in declarative made more clear - mixins are optional - each subsection starts with, "in *declarative mixins*", to reduce confusion --- lib/sqlalchemy/sql/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/expression.py') diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 050b5c05b..96147a94a 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1813,7 +1813,7 @@ class ColumnElement(ClauseElement, _CompareMixin): else: name = str(self) co = ColumnClause(self.anon_label, selectable, type_=getattr(self, 'type', None)) - + co.proxies = [self] selectable.columns[name] = co return co -- cgit v1.2.1