netbox-inventory
netbox-inventory copied to clipboard
Column View Error
I managed to sort my view by a specific column in the assets list and now get the following error whenever trying to load the page.
The complete exception is provided below:
<class 'django.core.exceptions.FieldError'>
Cannot resolve keyword 'current_site' into field. Choices are: asset_tag, bookmarks, comments, contact, contact_id, created, custom_field_data, delivery, delivery_id, device, device_id, device_type, device_type_id, id, images, inventoryitem, inventoryitem_id, inventoryitem_type, inventoryitem_type_id, journal_entries, last_updated, module, module_id, module_type, module_type_id, name, owner, owner_id, purchase, purchase_id, rack, rack_id, rack_type, rack_type_id, serial, status, storage_location, storage_location_id, subscriptions, tagged_items, tags, tenant, tenant_id, warranty_end, warranty_start
Python version: 3.12.3
NetBox version: 4.2.5-Docker-3.2.0
Plugins:
netbox_branching: 0.5.3
netbox_config_diff: 2.9.0
netbox_inventory: 2.3.0
netbox_topology_views: 4.2.0
I was wondering how I could go about clearing the users sort settings for that view.
I’m not sure how to reset the settings for other users, but you can reset your own settings in your preferences. Select your avatar in the top right corner to access the menu.
The issue originates from the fact that current_site (and other properties) is not a database field and thus does not support ordering. I'll look into providing a pull request (PR) to disable sorting of these fields.