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 cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/fields/related.py/ManyToManyRel.get_related_field