class Article(Base):
...
publisher_id = schema.Column(sqltypes.Integer, schema.ForeignKey('publishers.id'))
...
class Publisher(Base):
__tablename__ = 'publishers'
...
articles = relationship('Article', backref='publisher')articles = session.query(Article).filter(...).join(Article.publisher).filter(Publisher.name ==...)...AttributeError: type object 'Article' has no attribute 'publisher'--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy/mrqsB-YyCsw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
Sam Raker
Application Developer
30 W 24th St., 12th Floor
New York, NY 10010