I have an application, with a model called Entities.

I have another, with a model called NewsItem:

class NewsItem(models.Model):
    destined_for = models.ManyToManyField(
        Entity,
        )

I can get a list of NewsItems for a particular Entity with something like:

    Entity.objects.all()[2].newsitem_set.all()

My question is: can I get that same list in a template that has only
been passed Entity?

Thanks,

Daniele


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to