Enable filtering before/after custom date fields #3166

Closed
opened 2025-12-29 18:26:16 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 15, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.12

Proposed Functionality

Provide the ability to filter before or after a custom date field value. For example, where a CustomField named eol_date exists on the Device model:

GET /api/dcim/devices/?cf_eol_date__lt=2020-01-15

Use Case

This allows a user to find objects based on a minimum/maximum date.

Database Changes

None

External Dependencies

None

Originally created by @jeremystretch on GitHub (Jan 15, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.6.12 ### Proposed Functionality Provide the ability to filter before or after a custom date field value. For example, where a CustomField named `eol_date` exists on the Device model: `GET /api/dcim/devices/?cf_eol_date__lt=2020-01-15` ### Use Case This allows a user to find objects based on a minimum/maximum date. ### Database Changes None ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:26:16 +01:00
adam closed this issue 2025-12-29 18:26:17 +01:00
Author
Owner

@DanSheps commented on GitHub (Feb 13, 2020):

Would this be captured by #4121?

@DanSheps commented on GitHub (Feb 13, 2020): Would this be captured by #4121?
Author
Owner

@jeremystretch commented on GitHub (Feb 13, 2020):

Yes it would; going to close this one out.

@jeremystretch commented on GitHub (Feb 13, 2020): Yes it would; going to close this one out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3166