summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-03-20 11:06:13 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:43:03 +0200
commit96851b3d2bfb238c8450b34642a8e43f1fc55fbe (patch)
tree47922e5e3577564a93088e46824953bcea7b65b0 /archaeological_finds/models_finds.py
parent6e4e000bb25b985101aaccb709edb24c92a2c412 (diff)
downloadIshtar-96851b3d2bfb238c8450b34642a8e43f1fc55fbe.tar.bz2
Ishtar-96851b3d2bfb238c8450b34642a8e43f1fc55fbe.zip
✨ Find/Base find comment fields: rename, add to form, search (refs #5604)
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py8
1 files changed, 6 insertions, 2 deletions
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)