1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #13721: Filter VLAN choices by selected site (if any) when creating a prefix

This commit is contained in:
Jeremy Stretch
2023-09-11 13:52:19 -04:00
parent a8a36c0a8f
commit b5125e512f
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,10 @@
## v3.6.2 (FUTURE)
### Bug Fixes
* [#13721](https://github.com/netbox-community/netbox/issues/13721) - Filter VLAN choices by selected site (if any) when creating a prefix
---
## v3.6.1 (2023-09-06)

View File

@ -215,6 +215,9 @@ class PrefixForm(TenancyForm, NetBoxModelForm):
queryset=VLAN.objects.all(),
required=False,
selector=True,
query_params={
'site_id': '$site',
},
label=_('VLAN'),
)
role = DynamicModelChoiceField(