mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #8779: Enable the use of ChoiceSet by plugins
This commit is contained in:
@@ -17,7 +17,7 @@ class IPAddressFamilyChoices(ChoiceSet):
|
||||
#
|
||||
|
||||
class PrefixStatusChoices(ChoiceSet):
|
||||
key = 'ipam.Prefix.status'
|
||||
key = 'Prefix.status'
|
||||
|
||||
STATUS_CONTAINER = 'container'
|
||||
STATUS_ACTIVE = 'active'
|
||||
@@ -37,7 +37,7 @@ class PrefixStatusChoices(ChoiceSet):
|
||||
#
|
||||
|
||||
class IPRangeStatusChoices(ChoiceSet):
|
||||
key = 'ipam.IPRange.status'
|
||||
key = 'IPRange.status'
|
||||
|
||||
STATUS_ACTIVE = 'active'
|
||||
STATUS_RESERVED = 'reserved'
|
||||
@@ -55,7 +55,7 @@ class IPRangeStatusChoices(ChoiceSet):
|
||||
#
|
||||
|
||||
class IPAddressStatusChoices(ChoiceSet):
|
||||
key = 'ipam.IPAddress.status'
|
||||
key = 'IPAddress.status'
|
||||
|
||||
STATUS_ACTIVE = 'active'
|
||||
STATUS_RESERVED = 'reserved'
|
||||
@@ -134,7 +134,7 @@ class FHRPGroupAuthTypeChoices(ChoiceSet):
|
||||
#
|
||||
|
||||
class VLANStatusChoices(ChoiceSet):
|
||||
key = 'ipam.VLAN.status'
|
||||
key = 'VLAN.status'
|
||||
|
||||
STATUS_ACTIVE = 'active'
|
||||
STATUS_RESERVED = 'reserved'
|
||||
|
Reference in New Issue
Block a user