aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/projects/views/tasks.py
blob: 8e74cfaaa8e3dabe296e491a24c8975f11ee8971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.views.generic import list_detail
import snakeplan.projects.models as sp_models
from snakeplan.projects.models import Task


def index(request, task_id):
    return list_detail.object_detail(
        request=request,
        queryset=Task.objects.filter(id=task_id).all(),
        object_id=task_id,
        extra_context={'dispositions': sp_models.DISPOSITIONS}
        )