From 5845864ea387d35f5c66f916a6c262ba5b06fb2b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 3 Sep 2020 13:21:48 +0200 Subject: Container sheet: list documents --- ishtar_common/models.py | 1 + ishtar_common/templatetags/window_tables.py | 1 + 2 files changed, 2 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 42b4c479a..a5e8e6341 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5416,6 +5416,7 @@ class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel, "finds__base_finds__context_record__operation__pk", 'authors__cached_label': 'authors__cached_label', 'authors__person__pk': 'authors__person__pk', + "container_id": "container_id", } # alternative names of fields for searches diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index 8193f1061..a96460869 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -71,6 +71,7 @@ ASSOCIATED_MODELS['non-divisions'] = ( ASSOCIATED_MODELS['warehouses'] = (Warehouse, 'get-warehouse', '') ASSOCIATED_MODELS['documents'] = (Document, 'get-document', '') +ASSOCIATED_MODELS['documents_inside_container'] = (Document, 'get-document', '') @register.simple_tag(takes_context=True) -- cgit v1.2.3