From 136a0697c41cc1fc9196410c3d117e37641d2cc4 Mon Sep 17 00:00:00 2001 From: Laurent Date: Sun, 22 Jun 2025 15:03:00 +0200 Subject: [PATCH] test DataAccess keeping --- sync/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/signals.py b/sync/signals.py index 0b9c6c4..ed28521 100644 --- a/sync/signals.py +++ b/sync/signals.py @@ -257,8 +257,8 @@ def process_foreign_key_changes(sender, instance, **kwargs): def delete_data_access_if_necessary(sender, instance, **kwargs): if not isinstance(instance, BaseModel): return - if hasattr(instance, 'id'): - DataAccess.objects.filter(model_id=instance.id).delete() + # if hasattr(instance, 'id'): + # DataAccess.objects.filter(model_id=instance.id).delete() @receiver(m2m_changed, sender=DataAccess.shared_with.through) def handle_shared_with_changes(sender, instance, action, pk_set, **kwargs):