

def save_form_data(self, instance, data):
    if isinstance(data, self.rel.to):
        setattr(instance, self.name, data)
    else:
        setattr(data, self.attname, data)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/fields/related.py OneToOneField.save_form_data/VarMisuse@46/51 `instance`->`data`