Merge "Populate device_id/owner fields in Admin Edit Port form"

This commit is contained in:
Jenkins 2017-03-12 22:22:38 +00:00 committed by Gerrit Code Review
commit 1a1dd88904

View File

@ -110,4 +110,6 @@ class UpdateView(project_views.UpdateView):
initial = super(UpdateView, self).get_initial() initial = super(UpdateView, self).get_initial()
port = self._get_object() port = self._get_object()
initial['binding__host_id'] = port['binding__host_id'] initial['binding__host_id'] = port['binding__host_id']
initial['device_id'] = port['device_id']
initial['device_owner'] = port['device_owner']
return initial return initial