Re: Data Looping with a Join? Perhaps ...

2009-10-19 Thread Javier Guerra
On Mon, Oct 19, 2009 at 9:55 AM, The Danny Bos wrote: > Will this display all CollectionTypes even if there is no record for a > user in CollectionUserPile? no. in that case try this (untested): in the view: mytypes = ((t,

Re: Data Looping with a Join? Perhaps ...

2009-10-19 Thread The Danny Bos
Will this display all CollectionTypes even if there is no record for a user in CollectionUserPile? As I'd want to set a default item if there isn't, but still loop through all Types. d On Oct 20, 1:35 am, Javier Guerra wrote: > On Mon, Oct 19, 2009 at 6:53 AM, The Danny

Re: Data Looping with a Join? Perhaps ...

2009-10-19 Thread Javier Guerra
On Mon, Oct 19, 2009 at 6:53 AM, The Danny Bos wrote: > > K, I've got one for ya. > > I've created a new table to handle Users latest "owned" item, how > would I get this joined data up in my views.py where I'm currently > just looping through CollectionTypes. Tables and

Data Looping with a Join? Perhaps ...

2009-10-19 Thread The Danny Bos
K, I've got one for ya. I've created a new table to handle Users latest "owned" item, how would I get this joined data up in my views.py where I'm currently just looping through CollectionTypes. Tables and current Query is below: models.py class CollectionType(models.Model): title =