[fix]: Repayment schedule model

This commit is contained in:
VivianDee
2025-04-25 15:10:07 +01:00
parent c216c55928
commit ddbabcaca9
3 changed files with 43 additions and 8 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ class LoanRepaymentSchedule(db.Model):
loan = relationship(
"Loan",
primaryjoin="LoanCharge.loan_id == Loan.id",
primaryjoin="LoanRepaymentSchedule.loan_id == Loan.id",
foreign_keys=[loan_id],
back_populates="loan_charges",
back_populates="loan_repayment_schedules",
)
@classmethod