Ejemplo n.º 1
0
def task_detail(request, project_id, userstory_id, task_id):
    queryset = Task.objects.filter(user_story__project__pk=project_id, user_story__id=userstory_id)

    return generic_detail(
        request, 
        project_id,
        task_id,
        queryset=queryset, 
        current_story = userstory_id,
    )
Ejemplo n.º 2
0
def userstory_detail(request, project_id, userstory_id):
    queryset = UserStory.objects.filter(project__pk=project_id)
    attachment_form = UserStoryAttachmentForm()
    task_form = TaskForm()
    return generic_detail(
        request, 
        project_id,
        userstory_id, 
        queryset=queryset,
        current_story = userstory_id,
        extra_context={
            'attachment_form':attachment_form,
            'task_form':task_form,
        
        }
    )