diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 22:16:52 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 22:16:52 +0200 |
commit | 8af13a28e46e1cbdd1599e4b4d539f434c5ab3bc (patch) | |
tree | 798e4d5badca3709f2411659436f94d5b1bda143 /pyaggr3g470r/views.py | |
parent | No need to display the user's activation key. (diff) | |
download | newspipe-8af13a28e46e1cbdd1599e4b4d539f434c5ab3bc.tar.gz newspipe-8af13a28e46e1cbdd1599e4b4d539f434c5ab3bc.tar.bz2 newspipe-8af13a28e46e1cbdd1599e4b4d539f434c5ab3bc.zip |
List all users in the table.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 6fd06560..0d85aeb7 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -693,8 +693,7 @@ def dashboard(): Adminstrator's dashboard. """ users = User.query.all() - users.remove(g.user) - return render_template('admin/dashboard.html', users=users) + return render_template('admin/dashboard.html', users=users, current_user=g.user) @app.route('/admin/create_user/', methods=['GET', 'POST']) @app.route('/admin/edit_user/<int:user_id>/', methods=['GET', 'POST']) |