def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def plugins():
    plugins = get_all_plugins()
    return render_template("management/plugins.html", plugins=plugins)