From c0dbd21e1ead0c067829caeeb5ed79a5c15b7c48 Mon Sep 17 00:00:00 2001 From: Eric O'Callaghan Date: Sat, 18 Feb 2023 12:10:25 -0500 Subject: [PATCH] backref upgrades to account --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index abee915b..452545c8 100644 --- a/models.py +++ b/models.py @@ -124,7 +124,7 @@ class AccountsUpgrade(Base): account_id = Column(ForeignKey('accounts.account_id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True, nullable=False, index=True) amount = Column(MEDIUMINT(4), nullable=False) - account = relationship('Account') + account = relationship('Account', backref='upgrades') upgrade = relationship('AccountUpgrade') def __repr__(self):