

def send(self):
    obj = (self.addon or self.user)
    if self.reporter:
        user_name = ('%s (%s)' % (self.reporter.name, self.reporter.email))
    else:
        user_name = 'An anonymous coward'
    with no_translation():
        type_ = (gettext(amo.ADDON_TYPE[self.addon.type]) if self.addon else 'User')
    subject = ('[%s] Abuse Report for %s' % (type_, obj.name))
    msg = ('%s reported abuse for %s (%s%s).\n\n%s' % (user_name, obj.name, settings.SITE_URL, obj.get_url_path(), self.message))
    send_mail(subject, msg, recipient_list=(settings.ABUSE_EMAIL,))

dataset/ETHPy150Open mozilla/addons-server/src/olympia/abuse/models.py AbuseReport.send/original