1👍
✅
Yes it is possible to get this without for loop in Django
from django.db.models import F
Lot.objects.filter(lot_status=True,stock__gte=F('order'))
Source:stackexchange.com