Mercurial > kallithea
diff rhodecode/controllers/admin/repos.py @ 2707:aa89767753a9 beta
fix redirection on repo create failures
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 08 Aug 2012 22:38:01 +0200 |
parents | a221706dab50 |
children | aa17c7a1b8a5 |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos.py Wed Aug 08 22:37:40 2012 +0200 +++ b/rhodecode/controllers/admin/repos.py Wed Aug 08 22:38:01 2012 +0200 @@ -227,6 +227,7 @@ msg = _('error occurred during creation of repository %s') \ % form_result.get('repo_name') h.flash(msg, category='error') + return redirect(url('repos')) #redirect to our new repo ! return redirect(url('summary_home', repo_name=new_repo.repo_name))