@cronjobs.register
def send_new_region_emails(regions):
 region_ids = [r.id for r in regions]
 excluded = AddonExcludedRegion.objects.filter(region__in=region_ids).values_list('addon', flat=True)
 ids = Webapp.objects.exclude(id__in=excluded).filter(enable_new_regions=True).values_list('id', flat=True)
 _region_email(ids, region_ids)

@ cronjobs . register def send_new_region_emails ( regions ) : region_ids = [ r . id for r in regions ] excluded = AddonExcludedRegion . objects . filter ( region__in = region_ids ) . values_list ( 'addon' , flat = True ) ids = Webapp . objects . exclude ( id__in = excluded ) . filter ( enable_new_regions = True ) . values_list ( 'id' , flat = True ) _region_email ( ids , region_ids )
email app developers notifying them of new regions added .