I have two tables borrower
and lender
. A borrower can request many lenders and lenders also can get multiple requests from borrowers.
So I want to give many to many relation between two of this. Something like:
class borrower(models.Model):
name=models.CharField(max_length=20)
# . . . other fields
class lender(models.Model):
city = models.CharField(max_length=20)
# . . . other fields
Now in the loanrequest
table I want to define many to many relation between these two tables. How to achieve that?