Commit de36a9f5 authored by Francesca Sargent 's avatar Francesca Sargent
Browse files

.

parent 77103b1e
......@@ -94,7 +94,7 @@ def poststuff(type):
if current_user.can(Permission.WRITE_ARTICLES) and \
form.validate_on_submit():
cuisines = [Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
cuisines = [Cuisine(name=form.cuisines.data, timestamp='now', author=current_user._get_current_object())]
method = Method(
name=form.name.data,
......@@ -307,7 +307,7 @@ def editmethod(id):
form = MethodForm()
if form.validate_on_submit():
cuisines = [Cuisine(name=form.methods.data, timestamp='now', author=current_user._get_current_object())]
cuisines = [Cuisine(name=form.cuisines.data, timestamp='now', author=current_user._get_current_object())]
method.name = form.name.data
method.description = form.description.data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment