Renaming type relationship to device_type.

This commit is contained in:
Yaro Kasear 2025-07-28 14:00:49 -05:00
parent c93aa973bf
commit 1aee318853
4 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ inventory_headers = {
"Bar Code": lambda i: {"text": i.barcode},
"Brand": lambda i: {"text": i.brand.name} if i.brand else {"text": None},
"Model": lambda i: {"text": i.model},
"Item Type": lambda i: {"text": i.type.description} if i.type else {"text": None},
"Item Type": lambda i: {"text": i.device_type.description} if i.device_type else {"text": None},
"Shared?": lambda i: {"text": i.shared, "type": "bool", "html": checked_box if i.shared else unchecked_box},
"Owner": lambda i: {"text": i.owner.identifier, "url": url_for("main.user", id=i.owner.id)} if i.owner else {"text": None},
"Location": lambda i: {"text": i.location.identifier} if i.location else {"Text": None},