Cannot Sort By asn_count Column For Sites Table And Providers View Table #10746

Closed
opened 2025-12-29 21:35:27 +01:00 by adam · 5 comments
Owner

Originally created by @mr1716 on GitHub (Feb 7, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

V4.2.0

Python Version

3.10

Steps to Reproduce

  1. Add the ‘ASN Count’ Column as an available/default column for the Sites table
  2. Click the ‘ASN Count’ column to sort the table by ASN Count
  3. Refresh the page

When doing this, I get the error:
`<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'count' into field. Choices are: asn, bookmarks, comments, created, custom_field_data, description, device_count, id, journal_entries, last_updated, providers, rir, rir_id, sites, subscriptions, tagged_items, tags, tenant, tenant_id
`

Expected Behavior

It would sort the table based upon ASN Count value

Observed Behavior

It fails and can’t load the Sites Table. I also tested and verified this is an issue that occurs with the online demo system (demo.netbox.dev), so it isnt a customization or something special with my setup that is causing this.

Originally created by @mr1716 on GitHub (Feb 7, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version V4.2.0 ### Python Version 3.10 ### Steps to Reproduce 1) Add the ‘ASN Count’ Column as an available/default column for the Sites table 2) Click the ‘ASN Count’ column to sort the table by ASN Count 3) Refresh the page When doing this, I get the error: `<class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'count' into field. Choices are: asn, bookmarks, comments, created, custom_field_data, description, device_count, id, journal_entries, last_updated, providers, rir, rir_id, sites, subscriptions, tagged_items, tags, tenant, tenant_id ` ### Expected Behavior It would sort the table based upon ASN Count value ### Observed Behavior It fails and can’t load the Sites Table. I also tested and verified this is an issue that occurs with the online demo system (demo.netbox.dev), so it isnt a customization or something special with my setup that is causing this.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:35:27 +01:00
adam closed this issue 2025-12-29 21:35:27 +01:00
Author
Owner

@jnovinger commented on GitHub (Feb 12, 2025):

@arthanson , this is the one I'm working on.

@jnovinger commented on GitHub (Feb 12, 2025): @arthanson , this is the one I'm working on.
Author
Owner

@bctiemann commented on GitHub (Feb 14, 2025):

@jnovinger This fix also needs to be applied to ProviderListView, as it has the same issue.

@bctiemann commented on GitHub (Feb 14, 2025): @jnovinger This fix also needs to be applied to `ProviderListView`, as it has the same issue.
Author
Owner

@mr1716 commented on GitHub (Feb 15, 2025):

@bctiemann, would it worth submitting a separate ticket or keeping this one open? Just asking so it can be scoped properly

@mr1716 commented on GitHub (Feb 15, 2025): @bctiemann, would it worth submitting a separate ticket or keeping this one open? Just asking so it can be scoped properly
Author
Owner

@jeremystretch commented on GitHub (Feb 18, 2025):

Let's fix that issue here as well, since these are both effectively the same bug.

@jeremystretch commented on GitHub (Feb 18, 2025): Let's fix that issue here as well, since these are both effectively the same bug.
Author
Owner

@mr1716 commented on GitHub (Feb 18, 2025):

@jeremystretch that works. Will need to change the title then too to reflect it. It makes sense.

@mr1716 commented on GitHub (Feb 18, 2025): @jeremystretch that works. Will need to change the title then too to reflect it. It makes sense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10746