aboutsummaryrefslogtreecommitdiffstats
path: root/backend/constants.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-30 19:26:17 +0200
committerGravatar ks129 <[email protected]>2020-11-30 19:26:17 +0200
commitd10cf30456669cc841d79221f2f74f8385530dfd (patch)
tree69fa66b4874f9ed1f123e4f8e2658f774fec27d9 /backend/constants.py
parentMove ObjectId to special types directory (diff)
Add allowed question types constant
Diffstat (limited to 'backend/constants.py')
-rw-r--r--backend/constants.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py
index 746e277..c7db8e6 100644
--- a/backend/constants.py
+++ b/backend/constants.py
@@ -15,3 +15,14 @@ OAUTH2_REDIRECT_URI = os.getenv(
)
SECRET_KEY = os.getenv("SECRET_KEY", binascii.hexlify(os.urandom(30)).decode())
+
+QUESTION_TYPES = [
+ "radio",
+ "checkbox",
+ "select",
+ "short_text",
+ "textarea",
+ "code",
+ "range",
+ "section",
+]