aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/projects/views/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'snakeplan/projects/views/tasks.py')
-rw-r--r--snakeplan/projects/views/tasks.py10
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 @@
1from django.views.generic import list_detail
2from snakeplan.projects.models import Task
3
4
5def 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 )