code: def reindex_model_on_save(sender, document, **kwargs):
      '''(Re/Un)Index Mongo document on post_save'''
      if current_app.config.get('AUTO_INDEX'):
          reindex.delay(documentf reindex_model_on_save(sender, document, **kwargs):
      '''(Re/Un)Index Mongo document on post_save'''
      if current_app.config.get('AUTO_INDEX'):
          reindex.delay(document)
docs: (Re/Un)Index Mongo document on post_save