Re: [sqlalchemy] Relationship with a parameter?

2012-01-05 Thread Michael Bayer
On Jan 5, 2012, at 9:52 AM, Thijs Engels wrote: > When going through the (excellent) documentation on relationsship I came > across this example: > > > from sqlalchemy import Integer, ForeignKey, String, Column > from sqlalchemy.ext.declarative import declarative_base > from sqlalchemy.orm impo

[sqlalchemy] Relationship with a parameter?

2012-01-05 Thread Thijs Engels
When going through the (excellent) documentation on relationsship I came across this example: from sqlalchemy import Integer, ForeignKey, String, Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship Base = declarative_base() class User(Base):