Fix user and owner filters
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
@@ -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"):
|
||||
|
Reference in New Issue
Block a user