summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-09 07:49:37 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-09 07:49:37 +0100
commit16f379555b2150162efd8ffcfa0582b86dc8df0e (patch)
tree9d1a76529bcacfe6745e934bb4c752d3dd699c38
parentcd2d17c90acff9865671885fff754193c80cdb79 (diff)
downloadIshtar-16f379555b2150162efd8ffcfa0582b86dc8df0e.tar.bz2
Ishtar-16f379555b2150162efd8ffcfa0582b86dc8df0e.zip
Find search: change image search query
-rw-r--r--archaeological_finds/forms.py2
-rw-r--r--archaeological_finds/models_finds.py3
-rw-r--r--ishtar_common/widgets.py1
3 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 7688b2340..2c367043c 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -363,7 +363,7 @@ class FindSelect(TableSelect):
base_finds__batch = forms.ChoiceField(
label=_(u"Batch/object"), choices=[])
checked = forms.ChoiceField(label=_("Check"))
- image = forms.NullBooleanField(label=_(u"Has an image?"))
+ image__isnull = forms.NullBooleanField(label=_(u"Has an image?"))
def __init__(self, *args, **kwargs):
super(FindSelect, self).__init__(*args, **kwargs)
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index bf5ba6380..5c28d1a69 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -562,7 +562,8 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
'base_finds__batch': 'base_finds__batch',
'basket': 'basket',
'cached_label': 'cached_label__icontains',
- 'image': 'image__isnull'}
+ 'image__isnull': 'image__isnull',
+ }
EXTRA_REQUEST_KEYS.update(
dict(
[(key, key) for key in TABLE_COLS
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index 597fb2764..3fbf24f29 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -662,7 +662,6 @@ class JQueryJqGrid(forms.RadioSelect):
dct['extra_sources'].append((
imp.slug, imp.name,
reverse('get-by-importer', args=[imp.slug])))
-
dct.update({'name': name,
'col_names': col_names,
'extra_cols': extra_cols,