Skip to content

Commit

Permalink
Merge pull request #83 from 8oh8/patch-1
Browse files Browse the repository at this point in the history
Update relationships.rst
  • Loading branch information
kvesteri committed Jul 10, 2015
2 parents 4019831 + a01b5b9 commit 91bef18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/relationships.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ with ModelFieldList. ::
id = sa.Column(sa.Integer, autoincrement=True, primary_key=True)
name = sa.Column(sa.Unicode(255), nullable=True)

event_id = sa.Column(sa.Integer, sa.ForeignKey(Location.id))
event_id = sa.Column(sa.Integer, sa.ForeignKey(Event.id))
event = sa.orm.relationship(
Location,
backref='locations' # the event needs to have this
Expand Down

0 comments on commit 91bef18

Please sign in to comment.