def __flush_insert_event__(cls, target): super().__flush_insert_event__(target) if current_app.config["USE_ES"]: from flaskshop.public.search import Item Item.add(target)
def __flush_insert_event__(cls, target): from flaskshop.public.search import Item super().__flush_insert_event__(target) Item.add(target)