diff options
Diffstat (limited to 'snakeplan/projects/views/stories.py')
-rw-r--r-- | snakeplan/projects/views/stories.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/snakeplan/projects/views/stories.py b/snakeplan/projects/views/stories.py index 39bc323..504d930 100644 --- a/snakeplan/projects/views/stories.py +++ b/snakeplan/projects/views/stories.py | |||
@@ -1,10 +1,14 @@ | |||
1 | from django.views.generic import list_detail | 1 | from django.views.generic import list_detail |
2 | from snakeplan.projects.models import Story | 2 | from snakeplan.projects.models import Story |
3 | from snakeplan.projects.models import Task | ||
3 | 4 | ||
4 | 5 | ||
5 | def index(request, story_id): | 6 | def index(request, story_id): |
7 | tasks = Task.objects.filter(story=story_id).all() | ||
8 | |||
6 | return list_detail.object_detail( | 9 | return list_detail.object_detail( |
7 | request=request, | 10 | request=request, |
8 | queryset=Story.objects.filter(id=story_id).all(), | 11 | queryset=Story.objects.filter(id=story_id).all(), |
9 | object_id=story_id, | 12 | object_id=story_id, |
13 | extra_context={'tasks': tasks}, | ||
10 | ) | 14 | ) |