diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-19 12:59:12 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-19 12:59:12 -0500 |
commit | 6b4278013d6be03079a5ccca3b43b6d571601ba9 (patch) | |
tree | 6784cf22feaa49b206c5139302ae51997a253edb /lib/sqlalchemy/ext/declarative.py | |
parent | 429227fbaedd6fc74babac83b87f112199d21159 (diff) | |
download | sqlalchemy-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-x | lib/sqlalchemy/ext/declarative.py | 4 |
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 = \ |