Closes #4821: Restrict group options by selected site when bulk editing VLANs

This commit is contained in:
Jeremy Stretch 2020-07-06 10:04:08 -04:00
parent e67f08c745
commit 20ee8ec107
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,13 @@
# NetBox v2.8
## v2.8.7 (FUTURE)
### Bug Fixes
* [#4821](https://github.com/netbox-community/netbox/issues/4821) - Restrict group options by selected site when bulk editing VLANs
---
## v2.8.7 (2020-07-02)
### Enhancements

View File

@ -1068,7 +1068,12 @@ class VLANBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldBulkEditFor
)
site = DynamicModelChoiceField(
queryset=Site.objects.all(),
required=False
required=False,
widget=APISelect(
filter_for={
'group': 'site_id'
}
)
)
group = DynamicModelChoiceField(
queryset=VLANGroup.objects.all(),