Pastebin

Paste #3191: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

@app.route("/admin/settings", methods=["GET", "POST"])
def admin_settings():
    cssform = AdminCssForm()
        
    if cssform.validate_on_submit():
        set_setting(id = 'usercss', value=cssform.cssdata.data)
    return render_template("admin_settings.html", cssform=cssform)




==== CHAGNED TO ====
@app.route("/admin/settings", methods=["GET", "POST"])
def admin_settings():
    cssform = None
    cssform = AdminCssForm()
        
    if cssform.validate_on_submit():
        set_setting(id = 'usercss', value=cssform.cssdata.data)
    return render_template("admin_settings.html", cssform=cssform)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.