Rename DeviceType.get_full_name to full_name

This commit is contained in:
Jeremy Stretch 2024-08-01 09:14:03 -04:00
parent d6f2fc7d29
commit 0b77b3372c
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

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