Create custom form field for choice-based filters #1866
Labels
status: accepted
This issue has been accepted for implementation
type: housekeeping
Changes to the application which do not directly impact the end user
Issue type
[x] Feature request
[ ] Bug report
[ ] Documentation
Environment
Description
NetBox currently employs custom functions to generate the options for choice-based fields in filter forms. For example, the following is for site status selection:
The logic used to calculate and attach the count of each option is replicated in the same manner for several fields. We should be able to devise a simple custom form field that can be re-used without duplicating this boilerplate code.
The text was updated successfully, but these errors were encountered: