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

Added tenant to circuit bulk editing; enabled filtering of circuits by tenant

This commit is contained in:
Jeremy Stretch
2016-07-26 17:10:11 -04:00
parent 82a98f0e8f
commit 6f68628377
3 changed files with 21 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class CircuitBulkEditView(PermissionRequiredMixin, BulkEditView):
def update_objects(self, pk_list, form):
fields_to_update = {}
for field in ['type', 'provider', 'port_speed', 'commit_rate', 'comments']:
for field in ['type', 'provider', 'tenant', 'port_speed', 'commit_rate', 'comments']:
if form.cleaned_data[field]:
fields_to_update[field] = form.cleaned_data[field]