def register_live_index(model_cls):
 uid = (str(model_cls) + 'live_indexing')
 render_done.connect(render_done_handler, model_cls, dispatch_uid=uid)
 pre_delete.connect(pre_delete_handler, model_cls, dispatch_uid=uid)
 return model_cls

def register_live_index ( model_cls ) : uid = ( str ( model_cls ) + 'live_indexing' ) render_done . connect ( render_done_handler , model_cls , dispatch_uid = uid ) pre_delete . connect ( pre_delete_handler , model_cls , dispatch_uid = uid ) return model_cls
register a model and index for auto indexing .