Standardize the usage of field_groups for FilterForms #5584

Closed
opened 2025-12-29 19:29:47 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 29, 2021).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

NetBox v3.0 introduced support for specifying a list-of-lists to inform the order and grouping of fields with filter forms. For example:

class ProviderFilterForm(BootstrapMixin, CustomFieldModelFilterForm):
    model = Provider
    field_groups = [
        ['q', 'tag'],
        ['region_id', 'site_group_id', 'site_id'],
    ]

We need to do a sweep to ensure that these are all defined consistently, and that field_order is no longer used.

Justification

Consistency & cleanup

Originally created by @jeremystretch on GitHub (Oct 29, 2021). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes NetBox v3.0 introduced support for specifying a list-of-lists to inform the order and grouping of fields with filter forms. For example: ``` class ProviderFilterForm(BootstrapMixin, CustomFieldModelFilterForm): model = Provider field_groups = [ ['q', 'tag'], ['region_id', 'site_group_id', 'site_id'], ] ``` We need to do a sweep to ensure that these are all defined consistently, and that `field_order` is no longer used. ### Justification Consistency & cleanup
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:29:47 +01:00
adam closed this issue 2025-12-29 19:29:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5584