p.s. I'm using generic views

keukaman wrote:
> I wrote a blog application that included a single image. I originally
> wrote my model so that the image was defined in the same class as the
> rest of the blog entries.
>
> I then decided that I wanted to be able to put multiple images into my
> blog, so I created a "Photo" class, with a var called "photoid =
> models.ForeignKey(Entry, ...)
>
> Anyway, my template originally had this code to access the single photo
> as follows (which worked):
>
> <img src="{{ object.get_photo_url }}" />
>
> Now that I have multiple images outside the "Entry" class, can someone
> share the code I need to use in my template to show those images?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to