diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-10 19:20:39 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-10 19:20:39 +0200 |
commit | f0ac8c7a477d5db2c70d288706fa809630acd73e (patch) | |
tree | b8545c31c4134d581696b9ffa18bddaf11a0348c /archaeological_context_records/models.py | |
parent | 2fbc4e32fc1d90fe2003b72952d6c0a794d987e6 (diff) | |
download | Ishtar-f0ac8c7a477d5db2c70d288706fa809630acd73e.tar.bz2 Ishtar-f0ac8c7a477d5db2c70d288706fa809630acd73e.zip |
Find search: search by context records (and within relations)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index bb3afc899..855ea7d5c 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -202,7 +202,8 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms, 'archaeological_sites': 'operation__archaeological_sites__pk', 'cached_label': 'cached_label__icontains', } - RELATION_TYPES_PREFIX = {'ope_relation_types': 'operation__'} + RELATION_TYPES_PREFIX = {'ope_relation_types': 'operation__', + 'cr_relation_types': ''} RELATIVE_SESSION_NAMES = [ ('operation', 'operation__pk'), ('file', 'operation__associated_file__pk')] |