Skip to content

Commit

Permalink
Fix incorrect attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Sep 26, 2018
1 parent b0eb1ae commit a0ab799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/database/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __repr__(self):

class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(50), index=True)
name = db.Column(db.String(50), index=True)
writer_id = db.Column(db.Integer, db.ForeignKey('writer.id'))
writer = db.relationship('Writer', back_populates='books')

Expand Down

0 comments on commit a0ab799

Please sign in to comment.