mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 13:26:25 -06:00
Remove site field from PrefixBulkEditForm
This commit is contained in:
parent
5bcfaa046c
commit
4c85510f35
@ -204,25 +204,6 @@ class RoleBulkEditForm(NetBoxModelBulkEditForm):
|
|||||||
|
|
||||||
|
|
||||||
class PrefixBulkEditForm(NetBoxModelBulkEditForm):
|
class PrefixBulkEditForm(NetBoxModelBulkEditForm):
|
||||||
# region = DynamicModelChoiceField(
|
|
||||||
# label=_('Region'),
|
|
||||||
# queryset=Region.objects.all(),
|
|
||||||
# required=False
|
|
||||||
# )
|
|
||||||
# site_group = DynamicModelChoiceField(
|
|
||||||
# label=_('Site group'),
|
|
||||||
# queryset=SiteGroup.objects.all(),
|
|
||||||
# required=False
|
|
||||||
# )
|
|
||||||
# site = DynamicModelChoiceField(
|
|
||||||
# label=_('Site'),
|
|
||||||
# queryset=Site.objects.all(),
|
|
||||||
# required=False,
|
|
||||||
# query_params={
|
|
||||||
# 'region_id': '$region',
|
|
||||||
# 'group_id': '$site_group',
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
vlan_group = DynamicModelChoiceField(
|
vlan_group = DynamicModelChoiceField(
|
||||||
queryset=VLANGroup.objects.all(),
|
queryset=VLANGroup.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
@ -282,7 +263,6 @@ class PrefixBulkEditForm(NetBoxModelBulkEditForm):
|
|||||||
model = Prefix
|
model = Prefix
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('tenant', 'status', 'role', 'description'),
|
FieldSet('tenant', 'status', 'role', 'description'),
|
||||||
# FieldSet('region', 'site_group', 'site', name=_('Site')),
|
|
||||||
FieldSet('vrf', 'prefix_length', 'is_pool', 'mark_utilized', name=_('Addressing')),
|
FieldSet('vrf', 'prefix_length', 'is_pool', 'mark_utilized', name=_('Addressing')),
|
||||||
FieldSet('vlan_group', 'vlan', name=_('VLAN Assignment')),
|
FieldSet('vlan_group', 'vlan', name=_('VLAN Assignment')),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user