def get_post_data(widget_list, widget_class, configuration):
    """ Helper function to construct generic widget data for an arbitrary class and configuration """
    return {
        "widget_class": widget_class,
        "position": 0,
        "title": "example",
        "configuration": configuration,
        "widget_list": widget_list.id,
        "react_renderer": None
    }