Skip to content

Commit eb05a81

Browse files
committed
Merge pull request douban#40 from xtao/fix-new-project
Fix new project redirect.
2 parents 6223ec0 + b060f83 commit eb05a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vilya/views/projects/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _q_index(request):
2323
owner_id=current_user.id,
2424
creator_id=current_user.id)
2525
if p:
26-
return request.redirect('projects/%s' % p.name)
26+
return request.redirect('%s' % p.repo_name)
2727
context['project'] = p
2828
return st('projects/index.html', **context)
2929
projects = Project.gets_by()

0 commit comments

Comments
 (0)