@Addon.on_change
def watch_status(old_attr=None, new_attr=None, instance=None, sender=None, **kwargs):
 if (old_attr is None):
  old_attr = {}
 if (new_attr is None):
  new_attr = {}
 new_status = new_attr.get('status')
 old_status = old_attr.get('status')
 latest_version = instance.find_latest_version(channel=amo.RELEASE_CHANNEL_LISTED)
 if ((new_status not in amo.VALID_ADDON_STATUSES) or (not new_status) or (not latest_version)):
  return
 if (old_status not in amo.UNREVIEWED_ADDON_STATUSES):
  latest_version.reset_nomination_time()
 elif latest_version.has_files:
  inherit_nomination(None, latest_version)

@ Addon . on_change def watch_status ( old_attr = None , new_attr = None , instance = None , sender = None , ** kwargs ) : if ( old_attr is None ) : old_attr = { } if ( new_attr is None ) : new_attr = { } new_status = new_attr . get ( 'status' ) old_status = old_attr . get ( 'status' ) latest_version = instance . find_latest_version ( channel = amo . RELEASE_CHANNEL_LISTED ) if ( ( new_status not in amo . VALID_ADDON_STATUSES ) or ( not new_status ) or ( not latest_version ) ) : return if ( old_status not in amo . UNREVIEWED_ADDON_STATUSES ) : latest_version . reset_nomination_time ( ) elif latest_version . has_files : inherit_nomination ( None , latest_version )
set nomination date when app is pending review .