Error sorting vlan-groups by Scope field #4936

Closed
opened 2025-12-29 19:22:26 +01:00 by adam · 0 comments
Owner

Originally created by @jhammond-git on GitHub (May 21, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.3

Python version

3.7

Steps to Reproduce

  1. Go to /ipam/vlan-groups/
  2. Click on the "Scope" column header to sort

Expected Behavior

Alphabetical sort by Scope field.

Observed Behavior

The following error comes up:

<class 'django.core.exceptions.FieldError'>

Field 'scope' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation.

Python version: 3.7.8
NetBox version: 2.11.3

Confirmed at the URL: https://demo.netbox.dev/ipam/vlan-groups/?sort=scope

Originally created by @jhammond-git on GitHub (May 21, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.3 ### Python version 3.7 ### Steps to Reproduce 1. Go to /ipam/vlan-groups/ 2. Click on the "Scope" column header to sort ### Expected Behavior Alphabetical sort by Scope field. ### Observed Behavior The following error comes up: ``` <class 'django.core.exceptions.FieldError'> Field 'scope' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation. Python version: 3.7.8 NetBox version: 2.11.3 ``` Confirmed at the URL: https://demo.netbox.dev/ipam/vlan-groups/?sort=scope
adam added the type: bugstatus: accepted labels 2025-12-29 19:22:26 +01:00
adam closed this issue 2025-12-29 19:22:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4936