Circuit.status (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-07 11:10:46 -05:00
parent 02a8dc36c0
commit 79f501d897
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):