Last active
August 23, 2019 09:32
-
-
Save bencleary/e84709e3acf978725f192df6b5b9c5bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from enum import IntEnum | |
class CustomerTypes(IntEnum): | |
PROSPECT = 1 | |
LEAD = 2 | |
CUSTOMER = 3 | |
@classmethod | |
def choices(cls): | |
return [(key.value, key.name) for key in cls] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment