-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve keyword 'prefix_flat' into field. #10040
Comments
Full traceback from console: 2022/08/16 21:34:46 [info] 30#30 "netbox" application started |
Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v3.2.9. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data. |
I suspect I know what happened: You added the "Prefix (flat)" column to the prefixes table, and then attempted to sort by it. This won't appear to cause any immediate effect, because the table rendering via HTMX simply doesn't update the results. However, when you navigate back to the prefixes list, it attempts to render the table ordering by the (non-existent) As a workaround, you can navigate to |
Hi Jeremy, that was exactly the issue, and your workaround solved the issue. Thanks! |
Update: Was able to reproduce the issue in 3.2.8 by re-adding the Prefix (flat) column. But in 3.2.9, I can no longer reproduce the issue. |
NetBox version
v3.2.8
Python version
3.10
Steps to Reproduce
vrf: null
role: null
site: null
tags: []
vlan: null
prefix: "10.183.0.0/16"
status: "active"
tenant: null
created: "2022-08-16T17:47:13.439Z"
is_pool: false
description: "MP LA Lumen - Live Audio Subnet"
last_updated: "2022-08-16T17:47:13.439Z"
custom_fields: {}
mark_utilized: false
Expected Behavior
/ipam/prefixes/ expected to rendor.
Observed Behavior
Server Error page displayed:
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'django.core.exceptions.FieldError'>
Cannot resolve keyword 'prefix_flat' into field. Choices are: _children, _depth, created, custom_field_data, description, id, is_pool, journal_entries, last_updated, mark_utilized, prefix, role, role_id, site, site_id, status, tagged_items, tags, tenant, tenant_id, vlan, vlan_id, vrf, vrf_id
Python version: 3.10.4
NetBox version: 3.2.8
The text was updated successfully, but these errors were encountered: