diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-01 13:33:21 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:21 +0100 |
commit | dfad3d4b9d7779b5fcd125260021d9f008a68a4f (patch) | |
tree | f828418edadbf957db52121c13575ed7cc3e068c /ishtar_common | |
parent | fc3f77b2db29391ce1340c535a02b7a32583caa7 (diff) | |
download | Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.tar.bz2 Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.zip |
Context records: show find inside related context records
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 4 | ||||
-rw-r--r-- | ishtar_common/templatetags/window_tables.py | 2 |
2 files changed, 5 insertions, 1 deletions
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'] = ( |