Provide a base FilterSet class for plugins #6000

Closed
opened 2025-12-29 19:35:34 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Jan 25, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.6

Feature type

New functionality

Proposed functionality

Define a base FilterSet class for use by plugins. NetBox currently defines BaseFilterSet and PrimaryModelFilterSet classes, the later of which extends the former to include custom field and change logging support. We'll probably end up refactoring the existing classes to provide something analogous to the BaseModel class.

Use case

Enables plugins to leverage the advanced functionality provided by NetBox's core filterset classes without having to duplicate code.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Jan 25, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.6 ### Feature type New functionality ### Proposed functionality Define a base FilterSet class for use by plugins. NetBox currently defines `BaseFilterSet` and `PrimaryModelFilterSet` classes, the later of which extends the former to include custom field and change logging support. We'll probably end up refactoring the existing classes to provide something analogous to the `BaseModel` class. ### Use case Enables plugins to leverage the advanced functionality provided by NetBox's core filterset classes without having to duplicate code. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featuretopic: plugins labels 2025-12-29 19:35:34 +01:00
adam closed this issue 2025-12-29 19:35:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 27, 2022):

I've renamed PrimaryModelFilterSet to NetBoxModelFilterSet for use by plugins.

@jeremystretch commented on GitHub (Jan 27, 2022): I've renamed `PrimaryModelFilterSet` to `NetBoxModelFilterSet` for use by plugins.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6000