1
0
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:
Jeremy Stretch
2019-11-07 11:10:46 -05:00
parent a2a6b754be
commit e09ad6915f
9 changed files with 97 additions and 33 deletions

View File

@@ -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):