aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-12 22:27:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-12 22:27:54 +0200
commit8ac556d2d8eb527ed1d63872f79e56a503bbc27d (patch)
treed1c5e3adeb5ecc828b7c1e411ea5f94c298ec66d /pyaggr3g470r/views
parentRemoved useless form instance. (diff)
downloadnewspipe-8ac556d2d8eb527ed1d63872f79e56a503bbc27d.tar.gz
newspipe-8ac556d2d8eb527ed1d63872f79e56a503bbc27d.tar.bz2
newspipe-8ac556d2d8eb527ed1d63872f79e56a503bbc27d.zip
Bugfix: forgot to pass the 'user' variable to the template.
Diffstat (limited to 'pyaggr3g470r/views')
-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