From 0ce225a3c40d13404d72326de064ca0f0e56a88a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 22 Aug 2016 23:21:32 +0200 Subject: Treatments: more work on db treatments efficiency (refs #3108) --- ishtar_common/templatetags/window_tables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index 6710672e1..03365c207 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -16,7 +16,7 @@ from archaeological_files.models import File from archaeological_operations.models import OperationSource, Operation from archaeological_context_records.models import ContextRecord, \ ContextRecordSource -from archaeological_finds.models import Find, FindSource +from archaeological_finds.models import Find, FindSource, FindTreatments register = template.Library() @@ -43,6 +43,8 @@ ASSOCIATED_MODELS['finds_for_ope'] = ( Find, 'get-find-for-ope', 'get-find-full') ASSOCIATED_MODELS['finds_docs'] = ( FindSource, 'get-findsource', 'get-findsource-full') +ASSOCIATED_MODELS['finds_treatments'] = ( + FindTreatments, 'get-treatment', 'get-treatment-full') @register.simple_tag(takes_context=True) -- cgit v1.2.3