summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 8ef32c8de..dfb208d7d 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1760,6 +1760,14 @@ class Find(
pgettext_lazy("key for text search", "museum-purchase-price"),
"museum_purchase_price__iexact"
),
+ "museum_inventory_quantity": SearchAltName(
+ pgettext_lazy("key for text search", "museum-inventory-quantity"),
+ "museum_inventory_quantity__iexact"
+ ),
+ "museum_observed_quantity": SearchAltName(
+ pgettext_lazy("key for text search", "museum-observed-quantity"),
+ "museum_observed_quantity__iexact"
+ ),
}
ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES)
ALT_NAMES.update(DocumentItem.ALT_NAMES)
@@ -2175,6 +2183,8 @@ class Find(
)
museum_allocation_date = models.DateField(_("Date of museum allocation"), blank=True, null=True)
museum_purchase_price = models.TextField(_("Purchase price"), blank=True, default="")
+ museum_inventory_quantity = models.PositiveSmallIntegerField(_("Inventory quantity"), blank=True, null=True)
+ museum_observed_quantity = models.PositiveSmallIntegerField(_("Observed quantity"), blank=True, null=True)
# preservation module
conservatory_state = models.ForeignKey(