From 512b7367144a295ac08ee7a78cd5aaf38b869067 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 11 Mar 2025 15:52:34 +0100 Subject: 🐛 operation quick action: do not display sites relation action if site module is not activated (refs #6215) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 0b629f453..294d07847 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -2259,6 +2259,7 @@ class Operation( True, ), ] + if can_edit_operation and not is_locked and profile.archaeological_site: actions += [ ( reverse("operation-site-relations-modify", args=[self.pk, window_id]), -- cgit v1.2.3