def update_plugin(plugin_id):
    """
    Updates a single plugin by ID

    Returns a plugin instance and posts count
    """
    try:
        instance = CMSPlugin.objects.get(id=plugin_id).get_plugin_instance()[0]
        instance.update()
    except:
        return None, 0
    return instance, instance.posts.count()
def update_plugin ( plugin_id ) : try : instance = CMSPlugin . objects . get ( id = plugin_id ) . get_plugin_instance ( ) [ 0 ] instance . update ( ) except : return None , 0 return instance , instance . posts . count ( )
Updates a single plugin by ID

    Returns a plugin instance and posts count