@classmethod
def flag(cls, addon, event, message=None):
    cls.objects.get_or_create(addon=addon)
    if message:
        amo.log(event, addon, addon.current_version, details={'comments': message})
    else:
        amo.log(event, addon, addon.current_version)
    create_comm_note(addon, addon.current_version, None, message, note_type=comm.ACTION_MAP(event))
@classmethod
def flag(cls, addon, event, message=None):
    cls.objects.get_or_create(addon=addon)
    if message:
        amo.log(event, addon, addon.current_version, details={'comments': message})
    else:
        amo.log(event, addon, addon.current_version)
    create_comm_note(addon, addon.current_version, None, message, note_type=comm.ACTION_MAP(event))