Jay Parlar wrote:

>Ahh, that's perfect. Is there any way I could use this with the
>'object_list' generic view, or will I just have to roll my own view to
>get this one going?
>
Not with the object_list. However you can use object_detail to display a 
Tag and wrap the query in a custom method of Tag and call it in a 
template. Like:

the model:

    class Tag(modes.Model):
      ...
   
      def related_tags(self):
        return Tg.objects.filter(...)
   
   
the template:
 
    <ul>
    {% for tag in object.related_tags %}
      <li>{{ tag }}
    {% endfor %}
    </ul>

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