diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-30 16:53:46 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:49:36 +0200 |
| commit | 452f66e422b0c4d2783527da53aca39cc06be419 (patch) | |
| tree | 455e90208f8ebf92b8a40344d2665dc4f58d2873 /archaeological_finds/models_finds.py | |
| parent | 16ceb07f2559db7ebd20dc1ac529d3376a6c4aea (diff) | |
| download | Ishtar-452f66e422b0c4d2783527da53aca39cc06be419.tar.bz2 Ishtar-452f66e422b0c4d2783527da53aca39cc06be419.zip | |
Fix image search
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index c9bbc0713..9b0f085c7 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -646,7 +646,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, ATTRS_EQUIV = {'get_first_base_find': 'base_finds'} # search parameters - REVERSED_BOOL_FIELDS = ['image__isnull'] + REVERSED_BOOL_FIELDS = ['images__pk__isnull'] RELATION_TYPES_PREFIX = { 'ope_relation_types': 'base_finds__context_record__operation__', @@ -686,7 +686,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, 'base_finds__batch': 'base_finds__batch', 'basket': 'basket', 'cached_label': 'cached_label__icontains', - 'image__isnull': 'image__isnull', + 'images__pk__isnull': 'images__pk__isnull', 'container__location': 'container__location__pk', 'container__responsible': 'container__responsible__pk', 'container__index': 'container__index', |
