Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from django.db.models import Max, Avg
query = Target.objects.aggregate(difference=Max("radius_in_mts") - Avg("radius_in_mts"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment