robhudson/zamboni — comment on commit 2f86056fa5da3d032ec8c123ac56a125997ace10
File: apps/addons/models.py line 612
By robhudson:

This will find all compatible versions. Ordering by id DESC will get the latest one.

Note: This query isn't all that new... it's what is currently in use in versioncheck, with slight modification to what fields it's getting.