From 6ef3532a6e3cfba73d225f3e6de7a92d228d6f95 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 30 Oct 2018 22:16:59 +0100 Subject: Sheet operation: fix context record list --- archaeological_context_records/models.py | 2 ++ archaeological_operations/templates/ishtar/sheet_operation.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 0aa5c961d..89f3edee4 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -254,6 +254,8 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, 'label': 'label__icontains', 'archaeological_sites': 'operation__archaeological_sites__pk', 'cached_label': 'cached_label__icontains', + 'datings__period__label': 'datings__period__label', + 'operation_id': 'operation_id', } RELATION_TYPES_PREFIX = {'ope_relation_types': 'operation__', 'cr_relation_types': ''} diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 733b0b39a..4db5541e9 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -210,7 +210,7 @@ {% if item.context_record.count %} {% trans "Context records" as cr_lab %} -{% dynamic_table_document cr_lab 'context_records_for_ope' 'operation' item.pk 'TABLE_COLS_FOR_OPE' output %} +{% dynamic_table_document cr_lab 'context_records_for_ope' 'operation_id' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} {% if item.context_record_relations_q.count %} -- cgit v1.2.3