'A signal handler to update the given document\'s json field.'

def on_render_done(self, sender, instance, **kwargs):

    from .tasks import build_json_data_for_document
    if (not instance.deleted):
        build_json_data_for_document.delay(instance.pk, stale=False)
