X-Git-Url: http://git.veekun.com/zzz-spline-users.git/blobdiff_plain/bad3786c6d51faaa6b206f0abdc6837dd9bedda7..9f7ff3d6e985416dc6c0d98d69e6ec514320dc76:/splinext/users/controllers/users.py diff --git a/splinext/users/controllers/users.py b/splinext/users/controllers/users.py index dac037b..5e3826c 100644 --- a/splinext/users/controllers/users.py +++ b/splinext/users/controllers/users.py @@ -4,7 +4,7 @@ import unicodedata from wtforms import Form, ValidationError, fields, validators, widgets from pylons import config, request, response, session, tmpl_context as c, url -from pylons.controllers.util import abort, redirect_to +from pylons.controllers.util import abort, redirect from routes import request_config from sqlalchemy.orm.exc import NoResultFound @@ -84,6 +84,8 @@ class UsersController(BaseController): h.flash('Saved your profile.', icon='tick') - redirect_to(controller='users', action='profile', - id=c.page_user.id, name=c.page_user.name, - _code=303) + redirect( + url(controller='users', action='profile', + id=c.page_user.id, name=c.page_user.name), + code=303, + )