Просмотр исходного кода

Fixes #11142: Correct available choices for status under IP range filter form

jeremystretch 3 лет назад
Родитель
Сommit
8486d47d17
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-3.3.md
  2. 1 1
      netbox/ipam/forms/filtersets.py

+ 1 - 0
docs/release-notes/version-3.3.md

@@ -14,6 +14,7 @@
 * [#11087](https://github.com/netbox-community/netbox/issues/11087) - Fix background color of bottom banner content
 * [#11087](https://github.com/netbox-community/netbox/issues/11087) - Fix background color of bottom banner content
 * [#11101](https://github.com/netbox-community/netbox/issues/11101) - Correct circuits count under site view
 * [#11101](https://github.com/netbox-community/netbox/issues/11101) - Correct circuits count under site view
 * [#11128](https://github.com/netbox-community/netbox/issues/11128) - Disable ordering changelog table by object to avoid exception
 * [#11128](https://github.com/netbox-community/netbox/issues/11128) - Disable ordering changelog table by object to avoid exception
+* [#11142](https://github.com/netbox-community/netbox/issues/11142) - Correct available choices for status under IP range filter form
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/ipam/forms/filtersets.py

@@ -250,7 +250,7 @@ class IPRangeFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
         null_option='Global'
         null_option='Global'
     )
     )
     status = MultipleChoiceField(
     status = MultipleChoiceField(
-        choices=PrefixStatusChoices,
+        choices=IPRangeStatusChoices,
         required=False
         required=False
     )
     )
     role_id = DynamicModelMultipleChoiceField(
     role_id = DynamicModelMultipleChoiceField(