diff options
Diffstat (limited to 'snakeplan/projects/views/iterations.py')
-rw-r--r-- | snakeplan/projects/views/iterations.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/snakeplan/projects/views/iterations.py b/snakeplan/projects/views/iterations.py index 189362a..327de82 100644 --- a/snakeplan/projects/views/iterations.py +++ b/snakeplan/projects/views/iterations.py | |||
@@ -1,4 +1,11 @@ | |||
1 | from django.http import HttpResponse | 1 | from django.shortcuts import render_to_response |
2 | from projects.models import Project, Iteration | ||
2 | 3 | ||
3 | def iteration_list(request): | 4 | def iteration_list(request, project_id): |
4 | return HttpResponse("Hello world") | 5 | project = Project.objects.filter(id = project_id) |
6 | iteration_list = Iteration.objects.filter(project = project_id) | ||
7 | |||
8 | return render_to_response("iteration_list.html", | ||
9 | {"project_name" : project[0].name, | ||
10 | "iteration_list" : iteration_list | ||
11 | }) | ||