Hi,
Sorry if this is a FAQ, but is it possible to define a relationship and its
column all at once. e.g. instead of:
type_id = db.Column(db.Integer, db.ForeignKey('linktype.id'))
type = db.relationship('LinkType')
Something like:
type = db.relationship('LinkType', colname='type_id')
In fact, it'd be good for the colname to default to "xxx_id" - although
allow overriding.
This certainly was possible with Elixir.
Paul
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.