Have /dashboard/<slug> redir to /projects/<slug>. Fixes #250.

rtd2
Eric Holscher 2012-09-26 18:12:31 -07:00
parent 51bf150fd5
commit 9b16399221
1 changed files with 3 additions and 9 deletions

View File

@ -47,16 +47,10 @@ def project_manage(request, project_slug):
The management view for a project, where you will have links to edit The management view for a project, where you will have links to edit
the projects' configuration, edit the files associated with that the projects' configuration, edit the files associated with that
project, etc. project, etc.
Now redirects to the normal /projects/<slug> view.
""" """
project = get_object_or_404(request.user.projects.live(), slug=project_slug) return HttpResponseRedirect(reverse('projects_detail', args=[project_slug]))
return object_list(
request,
queryset=project.files.live(),
extra_context={'project': project},
page=int(request.GET.get('page', 1)),
template_object_name='file',
template_name='projects/project_manage.html',
)
@login_required @login_required
def project_create(request): def project_create(request):