2👍
✅
You can use a raw
query:
roles = _Money.objects.raw("""SELECT
*
FROM
_Money m
INNER JOIN _Pay p
ON m.date = p.date""")
Also see this similar topic:
Source:stackexchange.com