1. Michael Bayer
  2. sqlalchemy
  3. Issues


Issue #2061 resolved

Exception still references @classproperty instead of @declared_attr on 0.6.6

Anonymous created an issue

Should the InvalidRequestError message make reference to @declared_attr instead of @classproperty?

version = 0.6.6


File "/Users/j/dev/pyramid_alchauth/env/lib/python2.7/site-packages/sqlalchemy/ext/declarative.py", line 962, in _as_declarative "Mapper properties (i.e. deferred," InvalidRequestError: Mapper properties (i.e. deferred,column_property(), relationship(), etc.) must be declared as @classproperty callables on declarative mixin classes.

From docs http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#mixing-in-columns :

the declared_attr() decorator (renamed from sqlalchemy.util.classproperty in 0.6.5)

From docs http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#sqlalchemy.ext.declarative.declared_attr :


@declared_attr is available as sqlalchemy.util.classproperty for SQLAlchemy versions 0.6.2, 0.6.3, 0.6.4.

Comments (3)

  1. Log in to comment