def on_post_delete(sender, instance, using, **kwargs): # TODO:keep track of query result length RTQueryProxy.emit_change(instance)
def on_post_save(sender, instance, signal, created, **kwargs): if not created: RTModelProxy.emit_change(instance) else: # TODO:keep track of query result length RTQueryProxy.emit_change(instance)