diff --git a/sections/views.py b/sections/views.py index 72c6f38..439be01 100644 --- a/sections/views.py +++ b/sections/views.py @@ -24,7 +24,7 @@ def update(id): section=Section.query.get(id) clogger.info(request.data) a=request.get_json() - section.text=a["text"] + section.name=a["name"] db_session.commit() return jsonify(section=section)