diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-11 17:24:09 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:57 +0100 |
commit | c5636472f93f7d421f2dce56383ad219205f2847 (patch) | |
tree | cea8a0d821059095fc83aaaa019554ebf5321f19 /archaeological_operations/models.py | |
parent | 847ae9bab5afbc2d62fa6e4b1e751096e74e4c4d (diff) | |
download | Ishtar-c5636472f93f7d421f2dce56383ad219205f2847.tar.bz2 Ishtar-c5636472f93f7d421f2dce56383ad219205f2847.zip |
✨ operations searches: add "Result considered negative" field
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index a4feca974..093959fbe 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1199,6 +1199,7 @@ class Operation( "virtual_operation", "documentation_received", "finds_received", + "negative_result", ] MANY_COUNTED_FIELDS = ["context_record__base_finds__isnull"] REVERSED_BOOL_FIELDS = [ @@ -1469,6 +1470,10 @@ class Operation( "drassm_code__iexact", related_name="drassm_code" ), + "negative_result": SearchAltName( + pgettext_lazy("key for text search", "negative-result"), + "negative_result", + ), } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) @@ -1671,7 +1676,7 @@ class Operation( verbose_name="Rapporteur CTRA/CIRA", ) negative_result = models.NullBooleanField( - "Résultat considéré comme négatif", blank=True, null=True + _("Result considered negative"), blank=True, null=True ) cira_date = models.DateField("Date avis CTRA/CIRA", null=True, blank=True) eas_number = models.CharField( |