From c64e9848f2f4b47199178589dfc6b5ef181345bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Thu, 5 Sep 2024 18:42:20 +0200 Subject: [PATCH] fix(Admin): autoriser la suppression des SiaeUserRequest & TemplateTransactionalSendLog (#1424) --- lemarche/conversations/admin.py | 3 --- lemarche/siaes/admin.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/lemarche/conversations/admin.py b/lemarche/conversations/admin.py index af18c87d0..cab8b4f50 100644 --- a/lemarche/conversations/admin.py +++ b/lemarche/conversations/admin.py @@ -202,9 +202,6 @@ def has_add_permission(self, request): def has_change_permission(self, request, obj=None): return False - def has_delete_permission(self, request, obj=None): - return False - def recipient_object_id_with_link(self, obj): if obj.recipient_content_type and obj.recipient_object_id: if obj.recipient_content_type.model == "tender": diff --git a/lemarche/siaes/admin.py b/lemarche/siaes/admin.py index 15f91c2c8..0f53b7996 100644 --- a/lemarche/siaes/admin.py +++ b/lemarche/siaes/admin.py @@ -716,9 +716,6 @@ def has_add_permission(self, request): def has_change_permission(self, request, obj=None): return False - def has_delete_permission(self, request, obj=None): - return False - def parent_transactional_send_logs_count_with_link(self, obj): url = ( reverse("admin:conversations_templatetransactionalsendlog_changelist")