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

Fixes #4760: Enable power port template assignment when bulk editing power outlet templates

This commit is contained in:
Jeremy Stretch
2020-06-15 13:18:26 -04:00
parent 9fa4cbdfa5
commit 57cfb4ed7e
4 changed files with 27 additions and 3 deletions

View File

@@ -782,6 +782,8 @@ class BulkEditView(GetReturnURLMixin, View):
# TODO: Find a better way to accomplish this
if 'device' in request.GET:
initial_data['device'] = request.GET.get('device')
elif 'device_type' in request.GET:
initial_data['device_type'] = request.GET.get('device_type')
form = self.form(model, initial=initial_data)