aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-23 10:39:33 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-23 10:39:33 +0200
commit7119c98bdf164dd5c964ec8c8aaa424b695ff8da (patch)
treec08d2faed4f34d3418e45e5b4bbcf19ae1611be9 /pyaggr3g470r
parentUpdated translations. (diff)
downloadnewspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.tar.gz
newspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.tar.bz2
newspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.zip
When form is not validated, redirect to create_user.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 4f5c4fb2..f73ba812 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -743,7 +743,7 @@ def create_user(user_id=None):
flash(gettext('User') + ' ' + user.nickname + ' ' + gettext('successfully created.'), 'success')
return redirect("/admin/edit_user/"+str(user.id)+"/")
else:
- return render_template('profile.html', form=form)
+ return redirect(url_for('create_user'))
if request.method == 'GET':
if user_id is not None:
bgstack15