diff options
Diffstat (limited to 'snakeplan/projects/views/stories.py')
-rw-r--r-- | snakeplan/projects/views/stories.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/snakeplan/projects/views/stories.py b/snakeplan/projects/views/stories.py index ce59b1e..f87bb2b 100644 --- a/snakeplan/projects/views/stories.py +++ b/snakeplan/projects/views/stories.py | |||
@@ -1,5 +1,10 @@ | |||
1 | from django.http import HttpResponse | 1 | from django.views.generic import list_detail |
2 | from snakeplan.projects.models import Iteration | ||
2 | 3 | ||
3 | 4 | ||
4 | def index(request): | 5 | def index(request, project_id): |
5 | return HttpResponse('Index') | 6 | return list_detail.object_list( |
7 | request=request, | ||
8 | queryset=Iteration.objects.filter(project=project_id).all(), | ||
9 | allow_empty=True | ||
10 | ) | ||