From 6de1896af0a2890a300ad56c37c5c885dfb23a96 Mon Sep 17 00:00:00 2001 From: David Lenwell Date: Tue, 29 Oct 2013 21:23:25 -0700 Subject: [PATCH] fixed create profile to use new model layout --- refstack/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refstack/web.py b/refstack/web.py index 7da9cd78..424f3de0 100755 --- a/refstack/web.py +++ b/refstack/web.py @@ -112,8 +112,8 @@ def create_profile(): flash(u'Error: you have to enter a valid email address') else: flash(u'Profile successfully created') - db.session.add(User(name, email, session['openid'])) - db.session.commit() + db.add(User(name, email, session['openid'])) + db.commit() return redirect(oid.get_next_url()) return render_template( 'create_profile.html', next_url=oid.get_next_url())