diff options
author | Mike Crute <mcrute@gmail.com> | 2010-02-20 13:54:58 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-02-20 13:54:58 -0500 |
commit | dda940563123325ff2bf949cfa2bf7bcc8f02091 (patch) | |
tree | 652590ac6714385f665bb9036fa5d6094f94f5d3 /snakeplan/projects/views/stories.py | |
parent | 53fde96309d05f7f0474903e9b67682720bdb3b4 (diff) | |
download | snakeplan-dda940563123325ff2bf949cfa2bf7bcc8f02091.tar.bz2 snakeplan-dda940563123325ff2bf949cfa2bf7bcc8f02091.tar.xz snakeplan-dda940563123325ff2bf949cfa2bf7bcc8f02091.zip |
Adding story view
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 | ) | ||