diff options
| author | 2020-11-30 20:15:03 +0200 | |
|---|---|---|
| committer | 2020-11-30 20:15:03 +0200 | |
| commit | 0ec52e5b8349674bccd449d46a8ea2ce5b011f99 (patch) | |
| tree | ab5a7b7371e5fa454b7119aa9c1fa43a3b30c113 /backend | |
| parent | Create model for form question (diff) | |
Add Enum for form features
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/constants.py | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/backend/constants.py b/backend/constants.py index 1816354..3b8bec8 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -3,6 +3,8 @@ load_dotenv()  import os  # noqa  import binascii  # noqa +from enum import Enum  # noqa +  DATABASE_URL = os.getenv("DATABASE_URL")  MONGO_DATABASE = os.getenv("MONGO_DATABASE", "pydis_forms") @@ -44,3 +46,13 @@ REQUIRED_QUESTION_TYPE_DATA = {          "text": str,      },  } + + +class FormFeatures(Enum): +    """Lists form features. Read more in SCHEMA.md.""" + +    DISCOVERABLE = "DISCOVERABLE" +    REQUIRES_LOGIN = "REQUIRES_LOGIN" +    OPEN = "OPEN" +    COLLECT_EMAIL = "COLLECT_EMAIL" +    DISABLE_ANTISPAM = "DISABLE_ANTISPAM" | 
