aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 09bb920e..eabf3ebf 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -562,6 +562,7 @@ def profile():
Edit the profile of the currently logged user.
"""
user = UserController(g.user.id).get(id=g.user.id)
+ print(user)
form = ProfileForm()
if request.method == 'POST':
@@ -575,7 +576,7 @@ def profile():
'success')
return redirect(url_for('profile'))
else:
- return render_template('profile.html', form=form)
+ return render_template('profile.html', user=user, form=form)
if request.method == 'GET':
form = ProfileForm(obj=user)
bgstack15