aboutsummaryrefslogtreecommitdiffstats
path: root/backend/constants.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-30 20:15:03 +0200
committerGravatar ks129 <[email protected]>2020-11-30 20:15:03 +0200
commit0ec52e5b8349674bccd449d46a8ea2ce5b011f99 (patch)
treeab5a7b7371e5fa454b7119aa9c1fa43a3b30c113 /backend/constants.py
parentCreate model for form question (diff)
Add Enum for form features
Diffstat (limited to 'backend/constants.py')
-rw-r--r--backend/constants.py12
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"