Re: One to Many on Template UI

2009-10-07 Thread robinne
Wow, that worked, thank you! I thought I had tried everything. I was able to loop child items on the UI template with {% for item in mymembers.products_set.all %} ... On Oct 6, 9:54 pm, hcarvalhoalves wrote: > On 7 out, 01:23, robinne wrote: > > > I have my model setup with foreign key relation

Re: One to Many on Template UI

2009-10-06 Thread hcarvalhoalves
On 7 out, 01:23, robinne wrote: > I have my model setup with foreign key relationships. I can read one > table's data to the UI. But I cannot figure out how to read child > records onto template. I know it is (in the case of Blog, Author, and > Entry) b.entry_set.all(). But I don't know where thi

One to Many on Template UI

2009-10-06 Thread robinne
I have my model setup with foreign key relationships. I can read one table's data to the UI. But I cannot figure out how to read child records onto template. I know it is (in the case of Blog, Author, and Entry) b.entry_set.all(). But I don't know where this code goes. It won't work in the templat