Region view sort by Sites error #2386

Closed
opened 2025-12-29 17:25:35 +01:00 by adam · 3 comments
Owner

Originally created by @johanreinalda on GitHub (Feb 15, 2019).

In Regions view, clicking on the Sites header to sort results in error:

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

Cannot resolve keyword 'site_count' into field. Choices are: children, created, id, last_updated, level, lft, name, parent, parent_id, rght, sites, slug, tree_id
If further assistance is required, please post to the NetBox mailing list.

Environment

Netbox version 2.5.5
Python 3.6

Steps to Reproduce

  1. go to Organization menu
  2. click on Regions
  3. click on Sites column to sort

Expected Behavior

Sort regions display/view sorted by site count

Observed Behavior

Crash...

Originally created by @johanreinalda on GitHub (Feb 15, 2019). In Regions view, clicking on the Sites header to sort results in error: ``` <class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'site_count' into field. Choices are: children, created, id, last_updated, level, lft, name, parent, parent_id, rght, sites, slug, tree_id If further assistance is required, please post to the NetBox mailing list. ``` ### Environment Netbox version 2.5.5 Python 3.6 ### Steps to Reproduce 1. go to Organization menu 2. click on Regions 3. click on Sites column to sort ### Expected Behavior Sort regions display/view sorted by site count ### Observed Behavior Crash...
adam added the type: bugstatus: accepted labels 2025-12-29 17:25:35 +01:00
adam closed this issue 2025-12-29 17:25:35 +01:00
Author
Owner

@stuntguy3000 commented on GitHub (Feb 15, 2019):

Can replicate in 2.5.6.

<class 'django.core.exceptions.FieldError'>
Cannot resolve keyword 'site_count' into field. Choices are: children, created, id, last_updated, level, lft, name, parent, parent_id, rght, sites, slug, tree_id
@stuntguy3000 commented on GitHub (Feb 15, 2019): Can replicate in 2.5.6. ``` <class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'site_count' into field. Choices are: children, created, id, last_updated, level, lft, name, parent, parent_id, rght, sites, slug, tree_id ```
Author
Owner

@johanreinalda commented on GitHub (Feb 15, 2019):

just upgraded to 2.5.6, and same problem :-)

@johanreinalda commented on GitHub (Feb 15, 2019): just upgraded to 2.5.6, and same problem :-)
Author
Owner

@robbagithub commented on GitHub (Feb 15, 2019):

also an issue in 2.5.4

@robbagithub commented on GitHub (Feb 15, 2019): also an issue in 2.5.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2386