|
@@ -201,7 +201,7 @@ class RackBulkEditView(PermissionRequiredMixin, BulkEditView):
|
|
|
def update_objects(self, pk_list, form):
|
|
|
|
|
|
fields_to_update = {}
|
|
|
- for field in ['site', 'group', 'u_height', 'comments']:
|
|
|
+ for field in ['site', 'group', 'tenant', 'u_height', 'comments']:
|
|
|
if form.cleaned_data[field]:
|
|
|
fields_to_update[field] = form.cleaned_data[field]
|
|
|
|
|
@@ -633,7 +633,7 @@ class DeviceBulkEditView(PermissionRequiredMixin, BulkEditView):
|
|
|
if form.cleaned_data['status']:
|
|
|
status = form.cleaned_data['status']
|
|
|
fields_to_update['status'] = True if status == 'True' else False
|
|
|
- for field in ['device_type', 'device_role', 'serial']:
|
|
|
+ for field in ['tenant', 'device_type', 'device_role', 'serial']:
|
|
|
if form.cleaned_data[field]:
|
|
|
fields_to_update[field] = form.cleaned_data[field]
|
|
|
|