mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Cleanup from work on #198
This commit is contained in:
parent
198ed859ff
commit
102cf52a16
@ -482,7 +482,7 @@ class DeviceForm(BootstrapMixin, CustomFieldForm):
|
|||||||
if self.instance.pk:
|
if self.instance.pk:
|
||||||
|
|
||||||
# Initialize helper selections
|
# Initialize helper selections
|
||||||
self.initial['site'] = self.instance.rack.site
|
self.initial['site'] = self.instance.site
|
||||||
self.initial['manufacturer'] = self.instance.device_type.manufacturer
|
self.initial['manufacturer'] = self.instance.device_type.manufacturer
|
||||||
|
|
||||||
# Compile list of choices for primary IPv4 and IPv6 addresses
|
# Compile list of choices for primary IPv4 and IPv6 addresses
|
||||||
|
Loading…
Reference in New Issue
Block a user