def get_appversions(app, min_version, max_version):
 qs = AppVersion.objects.filter(application=app.id)
 min_appver = qs.get(version=min_version)
 max_appver = qs.get(version=max_version)
 return (min_appver, max_appver)

def get_appversions ( app , min_version , max_version ) : qs = AppVersion . objects . filter ( application = app . id ) min_appver = qs . get ( version = min_version ) max_appver = qs . get ( version = max_version ) return ( min_appver , max_appver )
return the appversions that correspond to the given versions .