Re: NEWBIE: joining two tables problem

2007-05-23 Thread [EMAIL PROTECTED]
The second method would probably have worked if you had put: {% for photo in emp.photo_set.all %} instead of {% for photo in emp.photo_set %} I always forget the .all at first ;) and have to go back and add it. On May 23, 3:13 pm, Rogelio <[EMAIL PROTECTED]> wrote: > On May 23, 3:10 pm, Rogel

Re: NEWBIE: joining two tables problem

2007-05-23 Thread Rogelio
On May 23, 3:10 pm, Rogelio <[EMAIL PROTECTED]> wrote: > Thank you so much! I was able to get your first method to work. The > second method > seemed to be complaining that I was using a for-loop on an empty > "photo_set". > I'll play around it some more. > > Rogelio Sorry for the multiple "th

Re: NEWBIE: joining two tables problem

2007-05-23 Thread Rogelio
Thank you so much! I was able to get your first method to work. The second method seemed to be complaining that I was using a for-loop on an empty "photo_set". I'll play around it some more. Rogelio --~--~-~--~~~---~--~~ You received this message because you ar

Re: NEWBIE: joining two tables problem

2007-05-23 Thread Rogelio
Thank you so much! I was able to get your first method to work. The second method seemed to be complaining that I was using a for-loop on an empty "photo_set". I'll play around it some more. Rogelio --~--~-~--~~~---~--~~ You received this message because you ar

Re: NEWBIE: joining two tables problem

2007-05-23 Thread Rogelio
Thank you so much! I was able to get your first method to work. The second method seemed to be complaining that I was using a for-loop on an empty "photo_set". I'll play around it some more. Rogelio --~--~-~--~~~---~--~~ You received this message because you ar

Re: NEWBIE: joining two tables problem

2007-05-23 Thread Tim Chase
> Hello. Newbie to django and first-time poster to this group. welcome! > class Employee(models.Model): > name = models.CharField(maxlength=50) > office = models.CharField(maxlength=20) > phone= models.CharField(maxlength=15) > > class Photo(models.Model): > filename = mo

NEWBIE: joining two tables problem

2007-05-23 Thread Rogelio
Hello. Newbie to django and first-time poster to this group. I've got two models (basic structure shown below): class Employee(models.Model): name = models.CharField(maxlength=50) office = models.CharField(maxlength=20) phone= models.CharField(maxlength=15) class Photo(models.Mo