aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/projects/views/tasks.py
blob: 4719da2134c6f8fa762b96dbf41a6f2b7d6cca66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from django.views.generic import list_detail
import projects.models as sp_models
from 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}
        )