def get_related_field(self):
        return self.to._meta.pk
Returns the field in the to' object to which this relationship is tied
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/fields/related.py/ManyToManyRel.get_related_field