

def send_message(self, request, object_id):
    try:
        obj = self.model.unmoderated_objects.get(pk=object_id)
        moderated_obj = ModeratedObject.objects.get_for_instance(obj)
        moderator = moderated_obj.moderator
        msg = self.get_moderation_message(moderated_obj.moderation_status, moderated_obj.moderation_reason, moderator.visible_until_rejected)
    except ModeratedObject.DoesNotExist:
        msg = self.get_moderation_message()
    self.message_user(request, msg)

dataset/ETHPy150Open dominno/django-moderation/moderation/admin.py ModerationAdmin.send_message/original