def automoderate(instance, user):
    try:
        status = instance.moderated_object.automoderate(user)
    except AttributeError:
        msg = "%s has been registered with Moderation." % instance.__class__
        raise RegistrationError(msg)

    return status
Auto moderates given model instance on user. Returns moderation status:
dataset/ETHPy150Open dominno/django-moderation/moderation/helpers.py/automoderate