diff options
author | 2020-11-30 19:44:39 +0200 | |
---|---|---|
committer | 2020-11-30 19:44:39 +0200 | |
commit | 11d6b2e9fdbc97d6dabe3cc6f52859acced48e45 (patch) | |
tree | 748bf7c31ece9a5f9e83df27a91e9a63ff9abf1b /backend/constants.py | |
parent | Add allowed question types constant (diff) |
Add question types data requirements to constants
Diffstat (limited to 'backend/constants.py')
-rw-r--r-- | backend/constants.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py index c7db8e6..1816354 100644 --- a/backend/constants.py +++ b/backend/constants.py @@ -26,3 +26,21 @@ QUESTION_TYPES = [ "range", "section", ] + +REQUIRED_QUESTION_TYPE_DATA = { + "radio": { + "options": list, + }, + "select": { + "options": list, + }, + "code": { + "language": str, + }, + "range": { + "options": list, + }, + "section": { + "text": str, + }, +} |