From 14075c7c744bb80da7f25c28f8c4f1322f30a69e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 15 Jul 2024 16:18:14 +0200 Subject: ✨ Find: add the ability to configure a "+ find without context" button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 9eeea5d66..1f8eab6a8 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1181,6 +1181,14 @@ class IshtarSiteProfile(models.Model, Cached): _("Preventive operator module"), default=False ) underwater = models.BooleanField(_("Underwater module"), default=False) + no_context_button = models.ForeignKey( + "archaeological_context_records.ContextRecord", + verbose_name=_("Context record for no context button"), + help_text=_('If provided a button is displayed on find search pages to create a "No context" find'), + on_delete=models.SET_NULL, + null=True, + blank=True + ) parcel_mandatory = models.BooleanField( _("Parcel are mandatory for context records"), default=True ) -- cgit v1.2.3