diff --git a/netbox/dcim/models/racks.py b/netbox/dcim/models/racks.py index cfa8f28be..8457271f4 100644 --- a/netbox/dcim/models/racks.py +++ b/netbox/dcim/models/racks.py @@ -152,8 +152,8 @@ class RackType(RackBase): ) clone_fields = ( - 'manufacturer', 'form_factor', 'width', 'u_height', 'desc_units', 'outer_width', 'outer_depth', 'outer_unit', - 'mounting_depth', 'weight', 'max_weight', 'weight_unit', + 'manufacturer', 'form_factor', 'width', 'u_height', 'airflow', 'desc_units', 'outer_width', 'outer_depth', + 'outer_unit', 'mounting_depth', 'weight', 'max_weight', 'weight_unit', ) prerequisite_models = ( 'dcim.Manufacturer', @@ -170,6 +170,10 @@ class RackType(RackBase): def get_absolute_url(self): return reverse('dcim:racktype', args=[self.pk]) + @property + def full_name(self): + return f"{self.manufacturer} {self.name}" + def clean(self): super().clean() diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index f69abe77a..128be6d3f 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -43,7 +43,7 @@