SQLAlchemy 0.8 に追加された新しい PostgreSQL HSTORE サポートを使用するモデルがあります。
class Gateway(Base):
__tablename__ = 'gateway'
id = Column(Integer, primary_key=True)
access = Column(Mutable.as_mutable(HSTORE), nullable=False, unique=True)
しかし、実行するsession.query(Gateway).all()
と、次の例外が発生します。
ValueError: Attribute 'access' does not accept objects of type <type 'dict'>
この問題を解決するのを手伝ってくれませんか?