mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Address PR feedback, add FHRP Group to ServiceFilterForm
This commit is contained in:
parent
158bb0d09d
commit
79e3067327
@ -612,7 +612,7 @@ class ServiceFilterForm(ContactModelFilterForm, ServiceTemplateFilterForm):
|
|||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('q', 'filter_id', 'tag'),
|
FieldSet('q', 'filter_id', 'tag'),
|
||||||
FieldSet('protocol', 'port', name=_('Attributes')),
|
FieldSet('protocol', 'port', name=_('Attributes')),
|
||||||
FieldSet('device_id', 'virtual_machine_id', name=_('Assignment')),
|
FieldSet('device_id', 'virtual_machine_id', 'fhrpgroup_id', name=_('Assignment')),
|
||||||
FieldSet('contact', 'contact_role', 'contact_group', name=_('Contacts')),
|
FieldSet('contact', 'contact_role', 'contact_group', name=_('Contacts')),
|
||||||
)
|
)
|
||||||
device_id = DynamicModelMultipleChoiceField(
|
device_id = DynamicModelMultipleChoiceField(
|
||||||
@ -625,4 +625,9 @@ class ServiceFilterForm(ContactModelFilterForm, ServiceTemplateFilterForm):
|
|||||||
required=False,
|
required=False,
|
||||||
label=_('Virtual Machine'),
|
label=_('Virtual Machine'),
|
||||||
)
|
)
|
||||||
|
fhrpgroup_id = DynamicModelMultipleChoiceField(
|
||||||
|
queryset=FHRPGroup.objects.all(),
|
||||||
|
required=False,
|
||||||
|
label=_('FHRP Group'),
|
||||||
|
)
|
||||||
tag = TagFilterField(model)
|
tag = TagFilterField(model)
|
||||||
|
Loading…
Reference in New Issue
Block a user