Skip to content

Instantly share code, notes, and snippets.

@JorgeMichelena
Created September 19, 2022 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeMichelena/d8b9b1fb37052f35a961f202c7b8eb09 to your computer and use it in GitHub Desktop.
Save JorgeMichelena/d8b9b1fb37052f35a961f202c7b8eb09 to your computer and use it in GitHub Desktop.
from django.db.models import Max
query = Target.objects.aggregate(max_radius=Max("radius_in_mts"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment