Update register view form and template.

This commit is contained in:
Nicholas Staples
2016-01-05 12:41:20 +00:00
parent 99fe83503c
commit 7693ba8a18
6 changed files with 54 additions and 45 deletions

View File

@@ -14,6 +14,8 @@ def insert_user(user):
db.session.commit()
# TODO Would be better to have a generic get and update for user
# something that replicates the sql functionality.
def get_user_by_id(id):
return User.query.filter_by(id=id).first()