From 96851b3d2bfb238c8450b34642a8e43f1fc55fbe Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 20 Mar 2024 11:06:13 +0100 Subject: ✨ Find/Base find comment fields: rename, add to form, search (refs #5604) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_finds/models_finds.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/models_finds.py') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 4eabda174..977a3ff3b 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -554,7 +554,7 @@ class BaseFind( ) excavation_id = models.TextField(_("Excavation ID"), blank=True, default="") description = models.TextField(_("Description"), blank=True, default="") - comment = models.TextField(_("Comment"), blank=True, default="") + comment = models.TextField(_("Comment on the circumstances of discovery"), blank=True, default="") special_interest = models.CharField( _("Special interest"), blank=True, default="", max_length=120 ) @@ -1319,6 +1319,10 @@ class Find( pgettext_lazy("key for text search", "context-record"), "base_finds__context_record__cached_label__icontains", ), + "base_finds__comment": SearchAltName( + pgettext_lazy("key for text search", "discovery-comment"), + "base_finds__comment__iexact", + ), "ope_relation_types": SearchAltName( pgettext_lazy("key for text search", "operation-relation-type"), "ope_relation_types", @@ -2125,7 +2129,7 @@ class Find( _("Dimensions comment"), blank=True, default="" ) mark = models.TextField(_("Marking details"), blank=True, default="") - comment = models.TextField(_("Comment"), blank=True, default="") + comment = models.TextField(_("General comment"), blank=True, default="") dating_comment = models.TextField(_("Comment on dating"), blank=True, default="") previous_id = models.TextField(_("Previous ID"), blank=True, default="") index = models.IntegerField("Index", default=0) -- cgit v1.2.3