Re: Related objects in generic views

2006-07-26 Thread Sean
Hi, Malcolm Tredinnick wrote: > In the object_list view, you are given an "object_list" parameter, which > is a list of all the objects for that page. To display them, you will be > doing something like > > {% for folder in object_list %} > > to iterate over that list. Inside that loop, y

Re: Related objects in generic views

2006-07-25 Thread Malcolm Tredinnick
On Mon, 2006-07-24 at 06:30 -0700, sean wrote: > Thanks for the reply. > That solution would involve the object_detail view for the folder, > right? > I am currently using that one, but pagination would be nice to use on > the media list, so I would rather get the object_list working. In the obje

Re: Related objects in generic views

2006-07-24 Thread sean
Thanks for the reply. That solution would involve the object_detail view for the folder, right? I am currently using that one, but pagination would be nice to use on the media list, so I would rather get the object_list working. I don't think I completely understand the queryset parameter. In the

Re: Related objects in generic views

2006-07-24 Thread Malcolm Tredinnick
On Mon, 2006-07-24 at 11:41 +, sean wrote: > Hi, > I'm having a hard time getting the generic list view to work for a set > of related objects. > I have two models, Folder and Media, where Media has a foreign key > relationship to Folder. I want to use generic views to access all the > media r

Related objects in generic views

2006-07-24 Thread sean
Hi, I'm having a hard time getting the generic list view to work for a set of related objects. I have two models, Folder and Media, where Media has a foreign key relationship to Folder. I want to use generic views to access all the media related to a specific folder but I can't seem to get the que