summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-22 18:21:23 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:42:32 +0200
commit6ac98b574bfb8f9044cb095cea2be272af5df11b (patch)
tree16edf83f448b94a57635ce9a5b19f637f30d4efb /archaeological_finds/models_finds.py
parentafc85e9c4bce3db373fa222f347d82a51a0c4aee (diff)
downloadIshtar-6ac98b574bfb8f9044cb095cea2be272af5df11b.tar.bz2
Ishtar-6ac98b574bfb8f9044cb095cea2be272af5df11b.zip
🗃️ find museum: observed and inventory quantity - ✨ add theses fiels to sheets and forms
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(