贷款模式:
class Loan(models.Model):
user = models.ForeignKey(Member, blank=True, null=True, on_delete=models.CASCADE)
amount = models.PositiveIntegerField(blank=False, null=False)
贷款支付模式:
class LoanPay(models.Model):
loan = models.ForeignKey(Loan, blank=True, null=True, on_delete=models.CASCADE)
amount = models.PositiveIntegerField(blank=False, null=False)
想要显示类似图像的数据 table
如何在模板中创建嵌套循环或在视图中创建更好的主意