diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-11 15:52:34 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-13 15:48:10 +0100 |
commit | 512b7367144a295ac08ee7a78cd5aaf38b869067 (patch) | |
tree | 252babc190cd573570cc3b80950c0183c2d78dc3 | |
parent | c51cba7ffbeb8744387a07f39a8139e2fc44f111 (diff) | |
download | Ishtar-512b7367144a295ac08ee7a78cd5aaf38b869067.tar.bz2 Ishtar-512b7367144a295ac08ee7a78cd5aaf38b869067.zip |
🐛 operation quick action: do not display sites relation action if site module is not activated (refs #6215)
-rw-r--r-- | archaeological_operations/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
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]), |