From 9430e8577cff4995c310f5675ea5d2a619554ccf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Sep 2024 11:10:30 +0200 Subject: ✨ Operations: remove form from the wizard to put in a specific form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 4220e6cc2..d17e529a7 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -2017,6 +2017,18 @@ class Operation( False, ), ] + if can_edit_operation and not is_locked: + actions += [ + ( + reverse("operation-relation-modify", args=[self.pk]), + _("Modify relations"), + "fa fa-retweet", + _("relations"), + "", + True, + ), + ] + if can_edit_operation: actions += [ ( -- cgit v1.2.3