diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-29 16:40:31 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:43:02 +0200 |
commit | ea87be13c4e47062a1d81cfebb0b39af78ef2a21 (patch) | |
tree | a7200986c88aae05d9ce56352ecc35b96987ac7d /archaeological_warehouse/models.py | |
parent | 1bb16f58b96cdb1a95611178c42401592cdb3b82 (diff) | |
download | Ishtar-ea87be13c4e47062a1d81cfebb0b39af78ef2a21.tar.bz2 Ishtar-ea87be13c4e47062a1d81cfebb0b39af78ef2a21.zip |
✨ Container - criteria search: index
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index b28d0223c..826f4444f 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -960,6 +960,9 @@ class Container( pgettext_lazy("key for text search", "old-reference"), "old_reference__iexact", ), + "index": SearchAltName( + pgettext_lazy("key for text search", "index"), "index" + ), "comment": SearchAltName( pgettext_lazy("key for text search", "comment"), "comment__iexact" ), @@ -1164,7 +1167,7 @@ class Container( blank=True, null=True, ) - index = models.IntegerField(_("Container ID"), blank=True, null=True, db_index=True) + index = models.IntegerField(_("Index"), blank=True, null=True, db_index=True) weight = models.FloatField(_("Measured weight (g)"), blank=True, null=True) calculated_weight = models.FloatField( _("Calculated weight (g)"), blank=True, null=True |