@@ -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):
@@ -87,7 +87,7 @@
<tr>
<th scope="row">{% trans "Device Type" %}</th>
<td>
- {{ 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)
</td>
</tr>