From 929a7a1512d93c4548fbe6d5aa029ab366c171be Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 Oct 2017 18:07:39 +0200 Subject: Sheet: show container id in sheets and tables (refs #3747) --- archaeological_finds/models_finds.py | 1 + archaeological_finds/templates/ishtar/sheet_find.html | 1 + 2 files changed, 2 insertions(+) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 5f4183f0c..e58d14f7e 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -557,6 +557,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, 'previous_id', 'label', 'material_types__label', 'datings__period__label', 'find_number', 'object_types__label', 'container__cached_label', + 'container__cahed_location', 'description', 'base_finds__context_record__parcel__town', 'base_finds__context_record__parcel', ] diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index c05c221e3..efd38e406 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -75,6 +75,7 @@ {% if item.container %}

{% trans "Warehouse"%}

{% field_detail "Container" item.container %} +{% field "Container ID" item.container.cached_location %} {% field_detail "Responsible warehouse" item.container.responsible %} {% field_detail "Location (warehouse)" item.container.location %} {% field "Precise localisation" item.container.divisions_lbl %} -- cgit v1.2.3