Commit cfa7fb4e by Jeremy Bowman

Fix FailingEnforceTypeWarning in SurveyBlock

parent f4337d3a
...@@ -770,9 +770,9 @@ class SurveyBlock(PollBase, CSVExportMixin): ...@@ -770,9 +770,9 @@ class SurveyBlock(PollBase, CSVExportMixin):
# but either way we want it to say 'Poll' by default on the page. # but either way we want it to say 'Poll' by default on the page.
block_name = String(default=_('Poll')) block_name = String(default=_('Poll'))
answers = List( answers = List(
default=( default=[
('Y', _('Yes')), ('N', _('No')), ('Y', _('Yes')), ('N', _('No')),
('M', _('Maybe'))), ('M', _('Maybe'))],
scope=Scope.settings, help=_("Answer choices for this Survey") scope=Scope.settings, help=_("Answer choices for this Survey")
) )
questions = List( questions = List(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment