Add hidden questions

This commit is contained in:
Raphael Michel
2019-05-09 09:02:21 +02:00
parent 35ddd8dd28
commit e7c4121745
9 changed files with 47 additions and 3 deletions

View File

@@ -207,7 +207,8 @@ class QuestionSerializer(I18nAwareModelSerializer):
class Meta:
model = Question
fields = ('id', 'question', 'type', 'required', 'items', 'options', 'position',
'ask_during_checkin', 'identifier', 'dependency_question', 'dependency_value')
'ask_during_checkin', 'identifier', 'dependency_question', 'dependency_value',
'hidden')
def validate_identifier(self, value):
Question._clean_identifier(self.context['event'], value, self.instance)