Re: [sqlalchemy] Can't access model object backref

2013-01-25 Thread Michael Bayer
On Jan 25, 2013, at 3:44 PM, sector119 wrote: > Hello. > > I have Category model: > > class Category(Base): > __tablename__ = 'categories' > > id = Column(Integer, primary_key=True) > parent_id = Column(Integer, ForeignKey('categories.id')) > name = Column(Unicode(255), nullabl

[sqlalchemy] Can't access model object backref

2013-01-25 Thread sector119
Hello. I have Category model: class Category(Base): __tablename__ = 'categories' id = Column(Integer, primary_key=True) parent_id = Column(Integer, ForeignKey('categories.id')) name = Column(Unicode(255), nullable=False) description = Column(UnicodeText) position = Column