Re: Show first available Image in a loop

2009-10-10 Thread Mike Ramirez
On Saturday 10 October 2009 00:55:02 The Danny Bos wrote: > Good point. > Here's the models I'm talking about as they're slightly different than > your aforementioned solution. > > class Collection(models.Model): > title = models.CharField(max_length=50, unique=True, help_text="eg: > Pokemon

Re: Show first available Image in a loop

2009-10-10 Thread The Danny Bos
Good point. Here's the models I'm talking about as they're slightly different than your aforementioned solution. class Collection(models.Model): title = models.CharField(max_length=50, unique=True, help_text="eg: Pokemon, Kiss, Baseball ...") slug = models.SlugField(max_length=50

Re: Show first available Image in a loop

2009-10-09 Thread Tim Chase
> I'm looping through an array of 'trading card' titles. For instance: > > - Pokemon > - Kiss > - Baseball > > Instead of showing just the title of the 'trading card', I'd like to > display an image of each instead. > But not all images are available for every card in a title, for > instance

Re: Show first available Image in a loop

2009-10-09 Thread The Danny Bos
I had a feeling this was a pain in the ass. I might try and work out another way around it, maybe a default image for each 'trading card' set? d On Oct 9, 9:54 pm, The Danny Bos wrote: > Hey there, > > I'm looping through an array of 'trading card' titles. For instance: > >  - Pokemon >  -

Show first available Image in a loop

2009-10-09 Thread The Danny Bos
Hey there, I'm looping through an array of 'trading card' titles. For instance: - Pokemon - Kiss - Baseball Instead of showing just the title of the 'trading card', I'd like to display an image of each instead. But not all images are available for every card in a title, for instance 'Pokemon