Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Questionnaire
model toSurvey
, the survey is the page that only the manager can see and is used to configure the surveysurvey_config
field stores the json configuration of the survey formproject
field needs to be added to indicate what project the survey belongs toSurveyResponse
model for accepting survey reponsesanswers
field is for storing a response from a surveyQuestion
,Answer
andComment
models as they are now handled by the dynamic form generation.SurveyView
is very barebones at the moment, I'll help put together a nice js form editor once I'm backProjects
page Project page #17SurveyResponseView
:pk
variable in the url is the primary key of theSurvey
object rather than theSurveyResponse
object! TheSurveyResponse
object does not exist until the user completes the questionnaire.SurveyResponse
object is only created at the end when all the sections of the questionnaire are finishedinvitation
app has been merged into the survey app, I think it make sense to just put both of them together as invitation is exclusively called from the surveysurvey/misc/test_survey_config
for an example survey configuration file, the format is not finalised yet but the final version should not be too different from what it is now.survey_config
, each section is an dictionary where the key is the field name and value is the response form the participant. eg:field_value
can also be a list for multiple choice widgets such as checkboxes.