Skip to content

Commit

Permalink
Update relationships.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
cisko3000 committed Jul 9, 2015
1 parent 4019831 commit a01b5b9
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 a01b5b9

Please sign in to comment.