On Sat, 2009-04-25 at 23:45 -0700, Prtamma wrote:
[...]
> I am using the following code
> 
>   {% if object.album_set.all %}
>   <ul>
>     {% for album in object.album_set.all %}
>     <li><a href="{{ album.get_absolute_url }}">{{ album.title }}</a></
> li>
>     {% endfor %}
>   </ul>
>   {% endif %}
> 
> but nothing shows up, can anyone please correct me.

What is "object" here? What type of queryset is it meant to be populated
with? Have you looked at what it contains in the template? How are you
populating it in the view?

If you need help examining what's in the template once you get there, I
wrote down a few suggestions a little while ago that might be useful:

http://www.pointy-stick.com/blog/2009/02/03/some-simple-django-debugging-tools/

Regards,
Malcolm



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

Reply via email to