diff --git a/inventory-app/common.py b/inventory-app/common.py index 087026d..8490388 100644 --- a/inventory-app/common.py +++ b/inventory-app/common.py @@ -99,9 +99,7 @@ def build_query(base_query, fields=[], sort_fields={}): q = base_query.copy() for attr, title, tp in fields: key = attr.replace(".", "_") - if key in ("inventory_owner_username", "inventory_user_username"): - val = request.args.get(key, type=dict) - elif tp == list: + if tp == list: val = request.args.getlist(key) val = list(map(str, val)) else: diff --git a/inventory-app/inventory.py b/inventory-app/inventory.py index 43370b0..ab6e3b5 100644 --- a/inventory-app/inventory.py +++ b/inventory-app/inventory.py @@ -355,8 +355,8 @@ def view_inventory(slug=None): template = "inventory_public.html" public_view = True else: - fields.append(("inventory.owner.username", "Owner", list)) - fields.append(("inventory.user.username", "User", list)) + fields.append(("inventory.owner.username", "Owner", str)) + fields.append(("inventory.user.username", "User", str)) if slug and not public_view: template = "inventory_pick.html" if request.path.startswith("/m/inventory/clone-with-slug"):