What to get related model fields in template
===

I have the following two models

    LocalPart (models.Model):
    ...

and

    GlobalPart (models.Model):
    ....
    localpart = models.ManyToManyField (LocalPart, related_name = 'localpart')
    ...


I want to reference the related GlobalParts when I call a LocalPart.

How do I do this?

I have tried the following: {{ part.localpart_set.all }} and {{ part.GlobalPart_set.all }} where part is an entry in localpart.



