Skip to content

Commit

Permalink
update field name in forms/filters/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cates committed Jul 31, 2024
1 parent b553b82 commit 35815e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nautobot_device_lifecycle_mgmt/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Meta:
model = HardwareLCM

fields = [
"unsupported",
"expired",
"device_type",
"inventory_item",
"release_date",
Expand Down
2 changes: 1 addition & 1 deletion nautobot_device_lifecycle_mgmt/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HardwareLCMFilterForm(NautobotFilterForm):
model = HardwareLCM
field_order = [
"q",
"unsupported",
"expired",
"device_type",
"inventory_item",
"release_date",
Expand Down
2 changes: 1 addition & 1 deletion nautobot_device_lifecycle_mgmt/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_expired_search(self):
end_of_sale=f"{test_year}-{test_month}-{test_day}",
end_of_support=f"{test_year}-{test_month}-{test_day}",
)
params = {"unsupported": True}
params = {"expired": True}
self.assertEqual(self.filterset(params, self.queryset).qs.count(), 2)


Expand Down

0 comments on commit 35815e7

Please sign in to comment.