Skip to content

Commit 90b2732

Browse files
authored
Fixes #20840: Remove unused airflow from RackType UI (#20848)
1 parent bfba0cc commit 90b2732

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

netbox/dcim/forms/filtersets.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,6 @@ class RackBaseFilterForm(NetBoxModelFilterSetForm):
278278
choices=BOOLEAN_WITH_BLANK_CHOICES
279279
)
280280
)
281-
airflow = forms.MultipleChoiceField(
282-
label=_('Airflow'),
283-
choices=add_blank_choice(RackAirflowChoices),
284-
required=False
285-
)
286281
weight = forms.DecimalField(
287282
label=_('Weight'),
288283
required=False,
@@ -381,6 +376,11 @@ class RackFilterForm(TenancyFilterForm, ContactModelFilterForm, RackBaseFilterFo
381376
},
382377
label=_('Rack type')
383378
)
379+
airflow = forms.MultipleChoiceField(
380+
label=_('Airflow'),
381+
choices=add_blank_choice(RackAirflowChoices),
382+
required=False
383+
)
384384
serial = forms.CharField(
385385
label=_('Serial'),
386386
required=False

netbox/dcim/tables/racks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Meta(NetBoxTable.Meta):
100100
model = RackType
101101
fields = (
102102
'pk', 'id', 'model', 'manufacturer', 'form_factor', 'u_height', 'starting_unit', 'width', 'outer_width',
103-
'outer_height', 'outer_depth', 'mounting_depth', 'airflow', 'weight', 'max_weight', 'description',
103+
'outer_height', 'outer_depth', 'mounting_depth', 'weight', 'max_weight', 'description',
104104
'comments', 'instance_count', 'tags', 'created', 'last_updated',
105105
)
106106
default_columns = (

netbox/templates/dcim/racktype.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ <h2 class="card-header">{% trans "Rack Type" %}</h2>
2424
<th scope="row">{% trans "Description" %}</th>
2525
<td>{{ object.description|placeholder }}</td>
2626
</tr>
27-
<tr>
28-
<th scope="row">{% trans "Airflow" %}</th>
29-
<td>{{ object.get_airflow_display|placeholder }}</td>
30-
</tr>
3127
</table>
3228
</div>
3329
{% include 'dcim/inc/panels/racktype_dimensions.html' %}

0 commit comments

Comments
 (0)