diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 6e71343e8..6e6bfa53c 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1122,7 +1122,7 @@ class Operation( ALT_NAMES = { "year": SearchAltName(pgettext_lazy("key for text search", "year"), "year"), "operation_code": SearchAltName( - pgettext_lazy("key for text search", "operation-code"), "operation_code" + pgettext_lazy("key for text search", "yearly-index"), "operation_code" ), "old_code": SearchAltName( pgettext_lazy("key for text search", "operation-old-code"), @@ -1360,7 +1360,7 @@ class Operation( related_name="operation_collaborator", ) year = models.IntegerField(_("Year"), null=True, blank=True) - operation_code = models.IntegerField(_("Numeric reference"), null=True, blank=True) + operation_code = models.IntegerField(_("Yearly index"), null=True, blank=True) associated_file = models.ForeignKey( "archaeological_files.File", related_name="operations", @@ -1944,7 +1944,7 @@ class Operation( ] return (max_val + 1) if max_val else 1 - year_index_lbl = _("Operation code") + year_index_lbl = _("Yearly index") @property def year_index(self): @@ -1977,7 +1977,7 @@ class Operation( objs = objs.exclude(pk=self.pk) if objs.count(): raise ValidationError( - _("This operation code already exists for " "this year") + _("This index already exists for this year") ) @property |