mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
#10178 add manufacturer to device detail view devicetype
This commit is contained in:
@@ -168,6 +168,10 @@ class DeviceType(NetBoxModel):
|
||||
def get_absolute_url(self):
|
||||
return reverse('dcim:devicetype', args=[self.pk])
|
||||
|
||||
@property
|
||||
def get_full_name(self):
|
||||
return f"{ self.manufacturer } { self.model }"
|
||||
|
||||
def to_yaml(self):
|
||||
data = {
|
||||
'manufacturer': self.manufacturer.name,
|
||||
|
||||
Reference in New Issue
Block a user