Sync Metax V2 when deleting dataset from v3
Source code in src/apps/core/signals.py
| @receiver(post_delete, sender=Dataset)
def delete_dataset_from_v2(sender, instance: Dataset, soft=False, **kwargs):
"""Sync Metax V2 when deleting dataset from v3"""
if settings.METAX_V2_INTEGRATION_ENABLED:
MetaxV2Client().delete_dataset(instance, soft=soft)
|