Latest django-filter breaks filtering devices/etc on None #1355

Closed
opened 2025-12-29 16:31:44 +01:00 by adam · 0 comments
Owner

Originally created by @lae on GitHub (Oct 26, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.4.2
  • NetBox version: 2.2.2

Description

Filtering devices on e.g. Tenant to "None", i.e. /dcim/devices/?tenant=0, returns zero results when there are devices with no tenant. After some troubleshooting it seems that the upgrade from django-filter==1.0.4 to django-filter==1.1.0 resulted in this issue.

I'm not too familiar with the django-filter library but it seems like https://github.com/carltongibson/django-filter/pull/680 might be the culprit?

Originally created by @lae on GitHub (Oct 26, 2017). ### Issue type [ ] Feature request [x] Bug report [ ] Documentation ### Environment * Python version: 3.4.2 * NetBox version: 2.2.2 ### Description Filtering devices on e.g. Tenant to "None", i.e. `/dcim/devices/?tenant=0`, returns zero results when there are devices with no tenant. After some troubleshooting it seems that the upgrade from `django-filter==1.0.4` to `django-filter==1.1.0` resulted in this issue. I'm not too familiar with the django-filter library but it seems like https://github.com/carltongibson/django-filter/pull/680 might be the culprit?
adam added the type: bug label 2025-12-29 16:31:44 +01:00
adam closed this issue 2025-12-29 16:31:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1355