# HG changeset patch # User Daniele Nicolodi # Date 1321010101 -3600 # Node ID 561585f470a4f4f88310f7e129cf403e4d989b62 # Parent 8b0bdb899c2a3b64a6130703dc18aa20a1130c2c Show the correct messages on user delete. diff -r 8b0bdb899c2a -r 561585f470a4 src/ltpdarepo/views/users.py --- a/src/ltpdarepo/views/users.py Tue Nov 08 22:01:21 2011 +0100 +++ b/src/ltpdarepo/views/users.py Fri Nov 11 12:15:01 2011 +0100 @@ -202,8 +202,9 @@ if request.form.get('ok'): user.delete() flash('User deleted.') + return redirect(url_for('manage.users.index')) flash('Operation cancelled.') - return redirect(url_for('manage.users.index')) + return redirect(url_for('manage.users.view', username=username)) return render_template('users/drop.html', form=form, user=user)