diff options
| 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 |
| commit | 81f64f64d935cdb85df6eaf8d47dc06f7d11b5ba (patch) | |
| tree | b905dd188ae1fd981b72eb874dda27f116beb597 /archaeological_finds/models_treatments.py | |
| parent | d24ad32d9beb5aea7f547cf33c48134aa9e9ce79 (diff) | |
| download | Ishtar-81f64f64d935cdb85df6eaf8d47dc06f7d11b5ba.tar.bz2 Ishtar-81f64f64d935cdb85df6eaf8d47dc06f7d11b5ba.zip | |
Shortcut menu: fix when current selected find is an integer (refs #3455)
Diffstat (limited to 'archaeological_finds/models_treatments.py')
| -rw-r--r-- | archaeological_finds/models_treatments.py | 2 |
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: |
