Removed the lazy setting from the account relationship of the JournalEntry data model. It results in problems in the income and expense report.

This commit is contained in:
依瑪貓 2023-03-05 19:14:07 +08:00
parent 8cd004bede
commit 39723b1299
2 changed files with 41 additions and 41 deletions

View File

@ -655,7 +655,7 @@ class JournalEntry(db.Model):
onupdate="CASCADE"),
nullable=False)
"""The account ID."""
account = db.relationship(Account, back_populates="entries", lazy=False)
account = db.relationship(Account, back_populates="entries")
"""The account."""
summary = db.Column(db.String, nullable=True)
"""The summary."""