mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Circuit.status (#3569)
This commit is contained in:
@@ -3,7 +3,7 @@ class ChoiceSetMeta(type):
|
||||
Metaclass for ChoiceSet
|
||||
"""
|
||||
def __call__(cls, *args, **kwargs):
|
||||
# Django will check if a choices value is callable, and if so assume that it returns an iterable
|
||||
# Django will check if a 'choices' value is callable, and if so assume that it returns an iterable
|
||||
return getattr(cls, 'CHOICES', ())
|
||||
|
||||
def __iter__(cls):
|
||||
|
Reference in New Issue
Block a user