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
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
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
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
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
> 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
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
7 matches
Mail list logo