<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _attach_to_instance(self, instance):
 """ Attach the current field to an instance of a model. Can be overriden to do something when an instance is set """

        self._instance = instance
        self.lockable = self.lockable and instance.lockable