def _close_translation_landed_task()

in src/wagtail_localize_smartling/signal_handlers.py [0:0]


def _close_translation_landed_task(instance):
    c_type = ContentType.objects.get_for_model(instance)

    # Try to find the task
    tasks = LandedTranslationTask.objects.filter(
        content_type=c_type,
        object_id=instance.pk,
    )
    for t in tasks:
        t.complete()