diff options
Diffstat (limited to 'snakeplan/projects/views/tasks.py')
-rw-r--r-- | snakeplan/projects/views/tasks.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/snakeplan/projects/views/tasks.py b/snakeplan/projects/views/tasks.py new file mode 100644 index 0000000..4857a98 --- /dev/null +++ b/snakeplan/projects/views/tasks.py | |||
@@ -0,0 +1,10 @@ | |||
1 | from django.views.generic import list_detail | ||
2 | from snakeplan.projects.models import Task | ||
3 | |||
4 | |||
5 | def index(request, task_id): | ||
6 | return list_detail.object_detail( | ||
7 | request=request, | ||
8 | queryset=Task.objects.filter(id=task_id).all(), | ||
9 | object_id=task_id, | ||
10 | ) | ||