Skip to content

Commit

Permalink
backref account upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoc committed Feb 18, 2023
1 parent 9fd9eb4 commit 19e31ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 19e31ed

Please sign in to comment.