i have a list of projects with related milestones. now i want to output the projects, and for every project the milestones according to that project. so, basically, i need a list of milestones for a list of projects.
extract from my milestone-model: class Milestone(meta.Model): project = meta.ForeignKey(Project) my view now looks like: def index(request): project_list = projects.get_list( user__id__exact=request.user.id, order_by=['title'], ) return render_to_response('manage/index', { 'project_list': project_list, }, context_instance=Context(request)) question is: how do i get a milestone_list for every project and what is the best way to do this? ///////////////////////////////// second question. this is probably very simple. however, i just couldn“t come up with a proper solution. i just want to output the title of the project for every milestone. something like {{ milestone.get_project(fields=['title']) }} patrick