diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-07-15 16:18:14 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-07-15 16:18:14 +0200 |
commit | 14075c7c744bb80da7f25c28f8c4f1322f30a69e (patch) | |
tree | 2974d8cf142a96e5b620b306f24f9698b120959c /ishtar_common/models.py | |
parent | 1bcb570b463370ad1375c395f0f23b204a2dba0e (diff) | |
download | Ishtar-14075c7c744bb80da7f25c28f8c4f1322f30a69e.tar.bz2 Ishtar-14075c7c744bb80da7f25c28f8c4f1322f30a69e.zip |
✨ Find: add the ability to configure a "+ find without context" button
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 ) |