[Fixed]-Doing a calculation while querying the database in Django

1👍

Try something like

from django.db.models import F
Project.objects.annotate(x=F('raised_amount') / F('total_amount')).filter(x__lt=0.2)
👤NS0

Leave a comment