I’m looking for the solution how to filter object by another object
example:
def test(request):
ranking = First.objects.filter(**user__id**=Another.objects.get(id=**user__id**).filter(HeIsVerify=True))
return render(request, 'sth.html', {'ranking': ranking})
any idea to do it?
You can look into Q complex queries. Try something like that :