def METHOD_NAME(request, object, acton_flag, message):
    return LogEntry.objects.log_action(
        user_id=request.user.id,
        content_type_id=ContentType.objects.get_for_model(type(object)).pk,
        object_id=object.pk,
        object_repr=str(object),
        action_flag=acton_flag,
        change_message=message
    )