Re: [sqlalchemy] mapper could not assemble primary key for table

2013-07-27 Thread Michael Bayer
On Jul 24, 2013, at 12:13 PM, Dennis Backhaus backha...@moxieinformatics.com wrote: I have following table: class Group(DeclarativeBase): Group definition Only the ``group_name`` column is required. __tablename__ = 'tg_group' id = Column(Integer,

[sqlalchemy] mapper could not assemble primary key for table

2013-07-26 Thread Dennis Backhaus
I have following table: class Group(DeclarativeBase): Group definition Only the ``group_name`` column is required. __tablename__ = 'tg_group' id = Column(Integer, autoincrement=True, primary_key=True) group_name = Column(Unicode(16), unique=True, nullable=False)