diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-10 10:22:08 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:43:03 +0200 |
commit | 440e5021bd0eb229d369d6e91c084e53fe097b23 (patch) | |
tree | 80e1e0b4e0d56a2f836fb90ffc1beaca1117732b /archaeological_operations/models.py | |
parent | 6eb800b65c10252bc27198d21eb52899e31bb8e0 (diff) | |
download | Ishtar-440e5021bd0eb229d369d6e91c084e53fe097b23.tar.bz2 Ishtar-440e5021bd0eb229d369d6e91c084e53fe097b23.zip |
✏️ Operation: rename "operation code" to "yearly index"
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 |