aboutsummaryrefslogtreecommitdiff
path: root/snakeplan/projects/views/iterations.py
blob: d44fec52f0c9232c4b3584e31637b517d187dd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.shortcuts import render_to_response
from snakeplan.projects.models import Project, Iteration

def iteration_list(request, project_id):
    iterations = Iteration.objects.filter(project=project_id)
    project = iterations[0].project

    return render_to_response("iterations/iteration_list.html",
                              {"project_name" : project.name,
                               "iterations" : iterations,
                              })