docs: def recreate_relationships(self, class_, attribute_name, key):
          '''
          Recreates one-to-many relationship
          '''
          iterable = self.record_keeper.foreign_to_many_foreign_map[key]
          for foreign_page_id, foreign_page_id_list in iteritems(iterable):
  
              # Assumption: local page has been indexed and exists
              # TODO: handle case where it doesn't exist
              local_page_id = self.record_keeper.get_local_page(foreign_page_id)
              local_page = Page.objects.get(id=local_page_id).specific
  
              for _foreign_page_id in foreign_page_id_list:
                  try:
                      local_version_page_id = (self.record_keeper
                                               .get_local_page(_foreign_page_id))
                      foreign_page = Page.objects.get(
                          id=local_version_page_id).specific
                      realtionship_object = class_(page=local_page)
                      setattr(realtionship_object, attribute_name, foreign_page)
                      realtionship_object.save()
                  except Exception as e:
                      context = {
                          "exception": e,
                          "function_schema": ("recreate_relationships"
                                              "(class, attribute_name, key)"),
                          "attribute_name": str(attribute_name),
                          "key": str(key),
                          "class": str(class_),
                          "foreign_page_id": str(foreign_page_id),
                      }
                      self.log(ERROR, "recreating relationships",
                               context=context)