

def contribute_to_class(self, cls, name):
    super(ForeignKey, self).contribute_to_class(cls, name)
    setattr(cls, target.name, ReverseSingleRelatedObjectDescriptor(self))
    if isinstance(self.rel.to, six.string_types):
        target = self.rel.to
    else:
        target = self.rel.to._meta.db_table
    cls._meta.duplicate_targets[self.column] = (target, 'o2m')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/fields/related.py ForeignKey.contribute_to_class/VarMisuse@32/40 `self`->`target`