diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-30 22:16:59 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-30 22:16:59 +0100 |
commit | 6ef3532a6e3cfba73d225f3e6de7a92d228d6f95 (patch) | |
tree | c22b0600ea763e0e31fdb0f20a156fd71cd11321 | |
parent | cd9f9cc4b511b9e02a106954ad6050e5c5373a4a (diff) | |
download | Ishtar-6ef3532a6e3cfba73d225f3e6de7a92d228d6f95.tar.bz2 Ishtar-6ef3532a6e3cfba73d225f3e6de7a92d228d6f95.zip |
Sheet operation: fix context record list
-rw-r--r-- | archaeological_context_records/models.py | 2 | ||||
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 2 |
2 files changed, 3 insertions, 1 deletions
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 %} |