Commit 365e6259 by Braden MacDonald

Minor cleanups

parent ba29389d
...@@ -96,26 +96,31 @@ class AnswerBlock(AnswerMixin, StepMixin, StudioEditableXBlockMixin, XBlock): ...@@ -96,26 +96,31 @@ class AnswerBlock(AnswerMixin, StepMixin, StudioEditableXBlockMixin, XBlock):
to make them searchable and referenceable across xblocks. to make them searchable and referenceable across xblocks.
""" """
name = String( name = String(
display_name="Question ID (name)",
help="The ID of this block. Should be unique unless you want the answer to be used in multiple places.", help="The ID of this block. Should be unique unless you want the answer to be used in multiple places.",
default="", default="",
scope=Scope.content scope=Scope.content
) )
default_from = String( default_from = String(
help="If specified, get the default value from this answer.", display_name="Default From",
help="If a question ID is specified, get the default value from this answer.",
default=None, default=None,
scope=Scope.content scope=Scope.content
) )
min_characters = Integer( min_characters = Integer(
display_name="Min. Allowed Characters",
help="Minimum number of characters allowed for the answer", help="Minimum number of characters allowed for the answer",
default=0, default=0,
scope=Scope.content scope=Scope.content
) )
question = String( question = String(
display_name="Question",
help="Question to ask the student", help="Question to ask the student",
scope=Scope.content, scope=Scope.content,
default="" default=""
) )
weight = Float( weight = Float(
display_name="Weight",
help="Defines the maximum total grade of the answer block.", help="Defines the maximum total grade of the answer block.",
default=1, default=1,
scope=Scope.settings, scope=Scope.settings,
......
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