diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-12 22:27:54 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-12 22:27:54 +0200 |
commit | 8ac556d2d8eb527ed1d63872f79e56a503bbc27d (patch) | |
tree | d1c5e3adeb5ecc828b7c1e411ea5f94c298ec66d /pyaggr3g470r/views | |
parent | Removed useless form instance. (diff) | |
download | newspipe-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.py | 3 |
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) |