

def get_moderation_message(self, moderation_status=None, reason=None, visible_until_rejected=False):
    if (moderation_status == MODERATION_STATUS_PENDING):
        if reason:
            return _('Object is viewable on site, it will be removed if moderator rejects it')
        else:
            return _('Object is not viewable on site, it will be visible if moderator accepts it')
    elif (moderation_status == MODERATION_STATUS_REJECTED):
        return _(('Object has been rejected by moderator, reason: %s' % reason))
    elif (moderation_status == MODERATION_STATUS_APPROVED):
        return _('Object has been approved by moderator and is visible on site')
    elif (moderation_status is None):
        return _('This object is not registered with the moderation system.')

dataset/ETHPy150Open dominno/django-moderation/moderation/admin.py ModerationAdmin.get_moderation_message/VarMisuse@32/55 `visible_until_rejected`->`reason`