예제 #1
0
def on_post_delete(sender, instance, using, **kwargs):
    # TODO:keep track of query result length    
    RTQueryProxy.emit_change(instance)
예제 #2
0
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)