removed debugs
This commit is contained in:
@@ -50,7 +50,6 @@ def author(id):
|
|||||||
### DDP: should this be request.form or request.values?
|
### DDP: should this be request.form or request.values?
|
||||||
alert="Success"
|
alert="Success"
|
||||||
author_form = AuthorForm(request.form)
|
author_form = AuthorForm(request.form)
|
||||||
print( author_form.validate_on_submit() )
|
|
||||||
if request.method == 'POST' and author_form.validate_on_submit():
|
if request.method == 'POST' and author_form.validate_on_submit():
|
||||||
id = request.form['id']
|
id = request.form['id']
|
||||||
author = Author.query.get(id)
|
author = Author.query.get(id)
|
||||||
@@ -60,7 +59,6 @@ def author(id):
|
|||||||
message="Sorry, Deleting unsupported at present"
|
message="Sorry, Deleting unsupported at present"
|
||||||
alert="Danger"
|
alert="Danger"
|
||||||
else:
|
else:
|
||||||
print( "seems to be saving" )
|
|
||||||
author.firstnames = request.form['firstnames']
|
author.firstnames = request.form['firstnames']
|
||||||
author.surname = request.form['surname']
|
author.surname = request.form['surname']
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user