timster escribió:
> {% for category in categories %}
>     <h2>{{ category.name }}</h2>
>     {% if category.forum_set.count %}
>         {% for forum in category.forum_set.all %}
>             <p>{{ forum.name }}</p>
>         {% endfor %}
>     {% else %}
>         <p>no forums in this category</p>
>     {% endif %}
> {% endfor %}

Why not add some more ifs?

 >         {% for forum in category.forum_set.all %}
+            {% if forum.visible %}
 >             <p>{{ forum.name }}</p>
+            {% endif %}
 >         {% endfor %}

Javier.

--~--~---------~--~----~------------~-------~--~----~
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