summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-09 12:53:24 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-02-09 12:55:47 +0100
commitf6bc90850085b46401e0596d22ddd9f017f893e7 (patch)
treeb905dd188ae1fd981b72eb874dda27f116beb597 /archaeological_finds
parent7ff5dd8f5d8cab189aa7cc009874ae384ff07240 (diff)
downloadIshtar-f6bc90850085b46401e0596d22ddd9f017f893e7.tar.bz2
Ishtar-f6bc90850085b46401e0596d22ddd9f017f893e7.zip
Shortcut menu: fix when current selected find is an integer (refs #3455)
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_treatments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 57ab530bf..3e9077a48 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -177,7 +177,7 @@ class Treatment(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
if menu_filtr:
if 'treatmentfile' in menu_filtr:
replace_query = Q(file=menu_filtr['treatmentfile'])
- if 'find' in menu_filtr and 'basket' not in menu_filtr['find']:
+ if 'find' in menu_filtr and 'basket' not in str(menu_filtr['find']):
q = Q(upstream=menu_filtr['find']) | Q(
downstream=menu_filtr['find'])
if replace_query: