summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-06-06 16:26:25 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-06-06 16:26:25 +0200
commit9678af0606a65420253db1c8ce6e2e59097bd2a5 (patch)
tree132189fe61556f0eae28a03c8973e01de4abefc0 /archaeological_operations/models.py
parent3ef08d29609b942ef812a9dba5f473f3ba6c0333 (diff)
downloadIshtar-9678af0606a65420253db1c8ce6e2e59097bd2a5.tar.bz2
Ishtar-9678af0606a65420253db1c8ce6e2e59097bd2a5.zip
🗃️ operation: operator_reference 20 -> 200 character - add operator_reference search criteria (refs #5965)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index be2af0d1a..333128c06 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1208,6 +1208,9 @@ class Operation(
"comment": SearchAltName(
pgettext_lazy("key for text search", "comment"), "comment__iexact"
),
+ "operator_reference": SearchAltName(
+ pgettext_lazy("key for text search", "operator-reference"), "operator_reference__iexact"
+ ),
"abstract": SearchAltName(
pgettext_lazy("key for text search", "abstract"), "abstract__iexact"
),
@@ -1462,7 +1465,7 @@ class Operation(
)
## end fr
operator_reference = models.CharField(
- _("Operator reference"), max_length=20, null=True, blank=True
+ _("Operator reference"), max_length=200, blank=True, default=""
)
common_name = models.TextField(_("Generic name"), blank=True, default="")
address = models.TextField(_("Address / Locality"), blank=True, default="")