def add_page(): """ Returns: """ form = PageEditorForm() page = Page() page.init_default() page.save() return render_template("content/pages/add_page.html", form=form, form_object=page)
def add_page(): """ Returns: """ form = PageEditorForm() page = Page() page.init_default() page.set("ctrl_template", "standard") page.set("ctrl_index", 1) page.save() return render_template("content/pages/add_page.html", form=form, form_object=page)