summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-19 17:33:37 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-19 17:33:37 +0100
commit1ce09b797cdff55127caf7ad78d3f4c9d7ff9c47 (patch)
tree656e6b4f57ae2386987a06dab0006b1a3c966b85 /ishtar_common
parent441ece7a95039679455eb45b029b8a84a4be508d (diff)
downloadIshtar-1ce09b797cdff55127caf7ad78d3f4c9d7ff9c47.tar.bz2
Ishtar-1ce09b797cdff55127caf7ad78d3f4c9d7ff9c47.zip
Treatments/Treatment files sheets: add source list (refs #3402)
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/templatetags/window_tables.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py
index 05592557a..960bc7184 100644
--- a/ishtar_common/templatetags/window_tables.py
+++ b/ishtar_common/templatetags/window_tables.py
@@ -18,7 +18,8 @@ from archaeological_context_records.models import ContextRecord, \
ContextRecordSource, RecordRelationView, \
RecordRelations as CRRecordRelations
from archaeological_finds.models import Find, FindSource, \
- FindUpstreamTreatments, FindDownstreamTreatments, FindTreatments
+ FindUpstreamTreatments, FindDownstreamTreatments, FindTreatments, \
+ TreatmentSource, TreatmentFileSource
from archaeological_warehouse.models import Container
register = template.Library()
@@ -59,6 +60,10 @@ ASSOCIATED_MODELS['finds_downstreamtreatments'] = (
FindDownstreamTreatments, 'get-downstreamtreatment', '')
ASSOCIATED_MODELS['treatments'] = (
FindTreatments, 'get-treatment', '')
+ASSOCIATED_MODELS['treatments_docs'] = (
+ TreatmentSource, 'get-treatmentsource', '')
+ASSOCIATED_MODELS['treatmentfiles_docs'] = (
+ TreatmentFileSource, 'get-treatmentfilesource', '')
ASSOCIATED_MODELS['containers'] = (
Container, 'get-container', '')