12 lines
528 B
Plaintext
12 lines
528 B
Plaintext
In order to add a new question type you need to:
|
|
|
|
1) Make a new tag in enums.py
|
|
2) add it to the list of question tags
|
|
3) Create the FormXXX in element
|
|
4) Create the AnswerXXX in answer
|
|
5) Add it to the question union type in answer.types
|
|
Tip: run ./pre-commit to run the typechecker to see if you got your imports right!
|
|
6) Add it to fiber-django
|
|
6a) Add it to the process_question function event/util.py
|
|
6b) Add it to core/templates/form
|
|
6c) Add it to the form page (currently dlfsite/templates/testing/form.html) |