code: def recreate_relationship(self, attribute_name, key):
          '''
          Recreates one-to-one relationship
          '''
          iterable = self.record_keeper.foreign_to_foreign_map["banner_link_page"]  # noqa
          for foreign_page_id, linked_page_foreign_id in iteritems(iterable):
              # get local banner page
              local_page_id = self.record_keeper.get_local_page(foreign_page_id)
              local_page = Page.objects.get(id=local_page_id).specific
  
              # get local linked page
              local_id = self.record_keeper.get_local_page(
                  linked_page_foreign_id)
              linked_page = Page.objects.get(id=local_id).specific
  
              # link the two together
              setattr(local_page, attribute_name, linked_page)
              # TODO: review publishing and saving revisions
              local_page.save_revision().publish(f recreate_relationship(self, attribute_name, key):
          '''
          Recreates one-to-one relationship
          '''
          iterable = self.record_keeper.foreign_to_foreign_map["banner_link_page"]  # noqa
          for foreign_page_id, linked_page_foreign_id in iteritems(iterable):
              # get local banner page
              local_page_id = self.record_keeper.get_local_page(foreign_page_id)
              local_page = Page.objects.get(id=local_page_id).specific
  
              # get local linked page
              local_id = self.record_keeper.get_local_page(
                  linked_page_foreign_id)
              linked_page = Page.objects.get(id=local_id).specific
  
              # link the two together
              setattr(local_page, attribute_name, linked_page)
              # TODO: review publishing and saving revisions
              local_page.save_revision().publish()
docs: Recreates one-to-one relationship