relationship needs to be class name not tablename
This commit is contained in:
parent
f20458ae1c
commit
936a88f264
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
|
@ -11,5 +11,5 @@ class Donation(db.Model):
|
|||
id = Column('id', INTEGER(), primary_key=True, autoincrement=True)
|
||||
currency_type = Column('currency_type', TEXT(), nullable=False)
|
||||
amount = Column('amount', INTEGER(), nullable=False)
|
||||
campaign = db.relationship('campaign', backref='donation', lazy='dynamic')
|
||||
user = db.relationship('user', backref='donation', lazy='dynamic')
|
||||
campaign = db.relationship('Campaign', backref='donation', lazy='dynamic')
|
||||
user = db.relationship('User', backref='donation', lazy='dynamic')
|
||||
Loading…
Add table
Add a link
Reference in a new issue