

def do_related_class(self, other, cls):
    self.set_attributes_from_rel()
    self.related = RelatedObject(other, cls, self)
    if (not cls._meta.abstract):
        self.contribute_to_related_class(other, self.related)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/fields/related.py RelatedField.do_related_class/original