1👍
✅
You can filter with:
Lead.objects.filter(buyer=request.user)
this will make an INNER JOIN
, and return only Lead
objects where request.user
is (one of) the buyer
s.
Source:stackexchange.com