mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 21:06:25 -06:00
Fix scope population on PrefixForm init
This commit is contained in:
parent
c25352c7a1
commit
481fa21a28
@ -234,7 +234,7 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
|
|||||||
FieldSet(
|
FieldSet(
|
||||||
'prefix', 'status', 'vrf', 'role', 'is_pool', 'mark_utilized', 'description', 'tags', name=_('Prefix')
|
'prefix', 'status', 'vrf', 'role', 'is_pool', 'mark_utilized', 'description', 'tags', name=_('Prefix')
|
||||||
),
|
),
|
||||||
FieldSet('scope_type', 'scope', name=_('Scope')),
|
FieldSet('scope_type', 'scope_id', name=_('Scope')),
|
||||||
FieldSet('vlan', name=_('VLAN Assignment')),
|
FieldSet('vlan', name=_('VLAN Assignment')),
|
||||||
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
|
FieldSet('tenant_group', 'tenant', name=_('Tenancy')),
|
||||||
)
|
)
|
||||||
@ -242,8 +242,8 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = Prefix
|
model = Prefix
|
||||||
fields = [
|
fields = [
|
||||||
'prefix', 'vrf', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'tenant_group', 'tenant',
|
'prefix', 'vrf', 'vlan', 'status', 'role', 'is_pool', 'mark_utilized', 'scope_type', 'scope_id',
|
||||||
'description', 'comments', 'tags',
|
'tenant_group', 'tenant', 'description', 'comments', 'tags',
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user