code: def save_record(self, instance, **kwargs):
          
          adapter = self.get_adapter_from_instance(instance)
          adapter.save_record(instance, **kwargs)
docs: Saves the record.
  
          If `update_fields` is set, this method will use partial_update_object()
          and will update only the given fields (never `_geoloc` and `_tags`).
  
          For more information about partial_update_object:
          https://github.com/algolia/algoliasearch-client-python#update-an-existing-object-in-the-index