From 8d93b5a7fe68a4f21e8c5cd60cd6741e03b7950e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 18 Feb 2018 20:40:16 +0100 Subject: Sheet operation: improve site table --- ishtar_common/templatetags/window_tables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index 86744a46b..0f00cf38f 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -13,7 +13,8 @@ from ishtar_common.forms import reverse_lazy from ishtar_common.widgets import DataTable from archaeological_files.models import File -from archaeological_operations.models import OperationSource, Operation +from archaeological_operations.models import OperationSource, Operation, \ + ArchaeologicalSite from archaeological_context_records.models import ContextRecord, \ ContextRecordSource, RecordRelationView, \ RecordRelations as CRRecordRelations @@ -49,6 +50,7 @@ ASSOCIATED_MODELS['context_records_relations_detail'] = ( CRRecordRelations, 'get-contextrecordrelationdetail', '') ASSOCIATED_MODELS['finds'] = (Find, 'get-find', 'get-find-full') +ASSOCIATED_MODELS['sites'] = (ArchaeologicalSite, 'get-site', '') ASSOCIATED_MODELS['finds_for_ope'] = ( Find, 'get-find-for-ope', 'get-find-full') ASSOCIATED_MODELS['finds_for_treatment'] = ( @@ -68,7 +70,6 @@ ASSOCIATED_MODELS['treatmentfiles_docs'] = ( ASSOCIATED_MODELS['containers'] = ( Container, 'get-container', '') - @register.simple_tag(takes_context=True) def dynamic_table_document( context, caption, associated_model, key, value, -- cgit v1.2.3