Skip to content

Commit

Permalink
Merge pull request #52 from edx-solutions/cliff/mckin-8752-complete-o…
Browse files Browse the repository at this point in the history
…n-submit

MCKIN-8752: Make it complete on submission instead of on view.
  • Loading branch information
jcdyer authored Nov 1, 2018
2 parents 660595b + 5b9174f commit aff325e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions image_explorer/image_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from django.conf import settings

from xblock.completable import XBlockCompletionMode
from xblock.core import XBlock
from xblock.fragment import Fragment
from xblock.fields import List, Scope, String, Boolean
Expand All @@ -28,6 +29,11 @@ class ImageExplorerBlock(XBlock): # pylint: disable=no-init
"""
XBlock that renders an image with tooltips
"""

has_score = True
max_score = 1.0
completion_mode = XBlockCompletionMode.COMPLETABLE

display_name = String(
display_name=_("Display Name"),
help=_("This name appears in the horizontal navigation at the top of the page."),
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def package_data(pkg, root_list):

setup(
name='xblock-image-explorer',
version='1.0.1',
version='1.1.0',
description='XBlock - Image Explorer',
packages=['image_explorer'],
install_requires=[
'XBlock',
'XBlock>=1.2',
],
entry_points={
'xblock.v1': 'image-explorer = image_explorer:ImageExplorerBlock',
Expand Down

0 comments on commit aff325e

Please sign in to comment.