summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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="")