diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-22 23:21:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-22 23:21:32 +0200 |
commit | 0ce225a3c40d13404d72326de064ca0f0e56a88a (patch) | |
tree | e0ff4b3d3f7242517ade10cc81843921e565b5ef /ishtar_common | |
parent | ce71152fcae3a25b9cadfd8a4a561829e3296d3c (diff) | |
download | Ishtar-0ce225a3c40d13404d72326de064ca0f0e56a88a.tar.bz2 Ishtar-0ce225a3c40d13404d72326de064ca0f0e56a88a.zip |
Treatments: more work on db treatments efficiency (refs #3108)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templatetags/window_tables.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |