Skip to content

Commit

Permalink
Fixes #13721: Filter VLAN choices by selected site (if any) when crea…
Browse files Browse the repository at this point in the history
…ting a prefix
  • Loading branch information
jeremystretch committed Sep 11, 2023
1 parent a8a36c0 commit b5125e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/release-notes/version-3.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions netbox/ipam/forms/model_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b5125e5

Please sign in to comment.