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