#10178 add manufacturer to device detail view devicetype

This commit is contained in:
Arthur
2022-08-29 15:26:38 -07:00
parent 624451464f
commit a28ce4e5e6
2 changed files with 5 additions and 1 deletions

View File

@@ -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,