code: def change_owner(self, new_owner):
          
          old_owner = self.owner.organization_user
          self.owner.organization_user = new_owner
          self.owner.save()
  
          # Owner changed signal
          owner_changed.send(sender=self, old=old_owner, new=new_owner)
docs: Changes ownership of an organization.