diff options
Diffstat (limited to 'snakeplan/projects')
-rw-r--r-- | snakeplan/projects/views/iterations.py | 14 | ||||
-rw-r--r-- | snakeplan/projects/views/stories.py | 14 | ||||
-rw-r--r-- | snakeplan/projects/views/tasks.py | 12 |
3 files changed, 0 insertions, 40 deletions
diff --git a/snakeplan/projects/views/iterations.py b/snakeplan/projects/views/iterations.py deleted file mode 100644 index 1f55532..0000000 --- a/snakeplan/projects/views/iterations.py +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | from django.views.generic import list_detail | ||
2 | from projects.models import Iteration | ||
3 | from projects.models import Story | ||
4 | |||
5 | def index(request, iteration_id): | ||
6 | stories = Story.objects.filter(iteration=iteration_id) | ||
7 | iteration = stories[0].iteration | ||
8 | |||
9 | return list_detail.object_list( | ||
10 | request=request, | ||
11 | queryset=stories, | ||
12 | extra_context={'iteration_name': iteration}, | ||
13 | allow_empty = True | ||
14 | ) | ||
diff --git a/snakeplan/projects/views/stories.py b/snakeplan/projects/views/stories.py deleted file mode 100644 index 93d926f..0000000 --- a/snakeplan/projects/views/stories.py +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | from django.views.generic import list_detail | ||
2 | from projects.models import Story | ||
3 | from projects.models import Task | ||
4 | |||
5 | |||
6 | def index(request, story_id): | ||
7 | tasks = Task.objects.filter(story=story_id).all() | ||
8 | |||
9 | return list_detail.object_detail( | ||
10 | request=request, | ||
11 | queryset=Story.objects.filter(id=story_id).all(), | ||
12 | object_id=story_id, | ||
13 | extra_context={'tasks': tasks}, | ||
14 | ) | ||
diff --git a/snakeplan/projects/views/tasks.py b/snakeplan/projects/views/tasks.py deleted file mode 100644 index 4719da2..0000000 --- a/snakeplan/projects/views/tasks.py +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | from django.views.generic import list_detail | ||
2 | import projects.models as sp_models | ||
3 | from projects.models import Task | ||
4 | |||
5 | |||
6 | def index(request, task_id): | ||
7 | return list_detail.object_detail( | ||
8 | request=request, | ||
9 | queryset=Task.objects.filter(id=task_id).all(), | ||
10 | object_id=task_id, | ||
11 | extra_context={'dispositions': sp_models.DISPOSITIONS} | ||
12 | ) | ||