Re: list for list object

2005-12-25 Thread patrick k
great thing about django: it´s always easier than i thought it´d be. thanks. > > patrick k wrote: > >> question is: how do i get a milestone_list for every project and what is the >> best way to do this? >> >> > {% for project in project_list %} > {% for milestone in project.get_milestone_

Re: list for list object

2005-12-25 Thread Maniac
patrick k wrote: question is: how do i get a milestone_list for every project and what is the best way to do this? {% for project in project_list %} {% for milestone in project.get_milestone_list %} {{ milestone }} {% endfor %} {% endfor %} In other words you can call object's methods

list for list object

2005-12-25 Thread patrick k
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