From 5015e03c0ceabe8ca8a7884e7178bfd246d77788 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 1 Dec 2020 13:33:21 +0100 Subject: Context records: show find inside related context records --- ishtar_common/models.py | 4 +++- ishtar_common/templatetags/window_tables.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 722e134ac..3a8182d2f 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -579,7 +579,9 @@ class JsonDataField(models.Model): LOGICAL_TYPES = ( ('above', _("Above")), ('below', _("Below")), - ('equal', _("Equal")) + ('equal', _("Equal")), + ('include', _("Include")), + ('included', _("Is included")), ) diff --git a/ishtar_common/templatetags/window_tables.py b/ishtar_common/templatetags/window_tables.py index a96460869..f91339cb2 100644 --- a/ishtar_common/templatetags/window_tables.py +++ b/ishtar_common/templatetags/window_tables.py @@ -51,6 +51,8 @@ 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_cr'] = ( + Find, 'get-find-for-cr', 'get-find-full') ASSOCIATED_MODELS['finds_for_treatment'] = ( Find, 'get-find-for-treatment', 'get-find-full') ASSOCIATED_MODELS['finds_upstreamtreatments'] = ( -- cgit v1.2.3