diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-23 10:39:33 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-23 10:39:33 +0200 |
commit | 7119c98bdf164dd5c964ec8c8aaa424b695ff8da (patch) | |
tree | c08d2faed4f34d3418e45e5b4bbcf19ae1611be9 | |
parent | Updated translations. (diff) | |
download | newspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.tar.gz newspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.tar.bz2 newspipe-7119c98bdf164dd5c964ec8c8aaa424b695ff8da.zip |
When form is not validated, redirect to create_user.
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
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: |