summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/declarative.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-02-19 12:59:12 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-02-19 12:59:12 -0500
commit6b4278013d6be03079a5ccca3b43b6d571601ba9 (patch)
tree6784cf22feaa49b206c5139302ae51997a253edb /lib/sqlalchemy/ext/declarative.py
parent429227fbaedd6fc74babac83b87f112199d21159 (diff)
downloadsqlalchemy-6b4278013d6be03079a5ccca3b43b6d571601ba9.tar.gz
- Fix error message referencing old @classproperty
name to reference @declared_attr [ticket:2061]
Diffstat (limited to 'lib/sqlalchemy/ext/declarative.py')
-rwxr-xr-xlib/sqlalchemy/ext/declarative.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py
index c8c464d0d..0372d4dac 100755
--- a/lib/sqlalchemy/ext/declarative.py
+++ b/lib/sqlalchemy/ext/declarative.py
@@ -910,7 +910,7 @@ def _as_declarative(cls, classname, dict_):
if obj.foreign_keys:
raise exc.InvalidRequestError(
"Columns with foreign keys to other columns "
- "must be declared as @classproperty callables "
+ "must be declared as @declared_attr callables "
"on declarative mixin classes. ")
if name not in dict_ and not (
'__table__' in dict_ and
@@ -925,7 +925,7 @@ def _as_declarative(cls, classname, dict_):
raise exc.InvalidRequestError(
"Mapper properties (i.e. deferred,"
"column_property(), relationship(), etc.) must "
- "be declared as @classproperty callables "
+ "be declared as @declared_attr callables "
"on declarative mixin classes.")
elif isinstance(obj, declarative_props):
dict_[name] = ret = \