def update_incompatible_versions(sender, instance, **kw):
 try:
  if (not (instance.addon.type == amo.ADDON_EXTENSION)):
   return
 except ObjectDoesNotExist:
  return
 from olympia.addons import tasks
 tasks.update_incompatible_appversions.delay([instance.id])

def update_incompatible_versions ( sender , instance , ** kw ) : try : if ( not ( instance . addon . type == amo . ADDON_EXTENSION ) ) : return except ObjectDoesNotExist : return from olympia . addons import tasks tasks . update_incompatible_appversions . delay ( [ instance . id ] )
when a new version is added or deleted .