11969 remove airflow from racktype (#17324)

* 11969 remove airflow from racktype

* 11969 remove airflow from racktype

* 11969 update docs

* 11969 fix rack edit

* Rename migration

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Arthur Hanson
2024-08-30 10:30:51 -07:00
committed by GitHub
parent b797fcc03d
commit 829bef041d
11 changed files with 18 additions and 52 deletions

View File

@@ -501,7 +501,6 @@ class RackTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
max_weight=1000,
weight_unit=WeightUnitChoices.UNIT_POUND,
description='foobar1',
airflow=RackAirflowChoices.FRONT_TO_REAR
),
RackType(
manufacturer=manufacturers[1],
@@ -520,7 +519,6 @@ class RackTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
max_weight=2000,
weight_unit=WeightUnitChoices.UNIT_POUND,
description='foobar2',
airflow=RackAirflowChoices.REAR_TO_FRONT
),
RackType(
manufacturer=manufacturers[2],
@@ -617,10 +615,6 @@ class RackTypeTestCase(TestCase, ChangeLoggedFilterSetTests):
params = {'weight_unit': WeightUnitChoices.UNIT_POUND}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)
def test_airflow(self):
params = {'airflow': RackAirflowChoices.REAR_TO_FRONT}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 1)
class RackTestCase(TestCase, ChangeLoggedFilterSetTests):
queryset = Rack.objects.all()