diff options
-rw-r--r-- | ishtar/furnitures/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar/furnitures/views.py b/ishtar/furnitures/views.py index 66dfb7e8f..7dfe6d2dd 100644 --- a/ishtar/furnitures/views.py +++ b/ishtar/furnitures/views.py @@ -205,7 +205,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[], or_reqs = [] for k in HIERARCHIC_FIELDS: for req in dct.copy(): - if req.startswith(k): + if req.endswith(k + '__pk'): val = dct.pop(req) reqs = Q(**{req:val}) req = req[:-2] + '__' |