diff --git a/netbox/dcim/models/devices.py b/netbox/dcim/models/devices.py index c6e97a3cd..14c6ac8ab 100644 --- a/netbox/dcim/models/devices.py +++ b/netbox/dcim/models/devices.py @@ -221,7 +221,7 @@ class DeviceType(ImageAttachmentsMixin, PrimaryModel, WeightMixin): return reverse('dcim:devicetype', args=[self.pk]) @property - def get_full_name(self): + def full_name(self): return f"{self.manufacturer} {self.model}" def to_yaml(self): diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 80266c78d..b12dee568 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -87,7 +87,7 @@ {% trans "Device Type" %} - {{ object.device_type|linkify:"get_full_name" }} ({{ object.device_type.u_height|floatformat }}U) + {{ object.device_type|linkify:"full_name" }} ({{ object.device_type.u_height|floatformat }}U)